From 596143bc11e2ebccf8a887f805e3ecea754cf51b Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 14 Jul 2016 22:30:44 +0200 Subject: [PATCH] m mergerfs: init --- 1systems/omo.nix | 1 + 5pkgs/default.nix | 2 ++ 5pkgs/mergerfs/default.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 5pkgs/mergerfs/default.nix diff --git a/1systems/omo.nix b/1systems/omo.nix index 8e492cc..8c24e0f 100644 --- a/1systems/omo.nix +++ b/1systems/omo.nix @@ -75,6 +75,7 @@ in { # HDD Array stuff + environment.systemPackages = [ pkgs.mergerfs ]; services.smartd.devices = builtins.map (x: { device = x; }) allDisks; makefu.snapraid = let diff --git a/5pkgs/default.nix b/5pkgs/default.nix index f6a6b67..f94136c 100644 --- a/5pkgs/default.nix +++ b/5pkgs/default.nix @@ -10,6 +10,8 @@ in alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";}; awesomecfg = callPackage ./awesomecfg {}; bintray-upload = callPackage ./bintray-upload {}; + git-xlsx-textconv = callPackage ./git-xlsx-textconv {}; + mergerfs = callPackage ./mergerfs {}; mycube-flask = callPackage ./mycube-flask {}; nodemcu-uploader = callPackage ./nodemcu-uploader {}; tw-upload-plugin = callPackage ./tw-upload-plugin {}; diff --git a/5pkgs/mergerfs/default.nix b/5pkgs/mergerfs/default.nix new file mode 100644 index 0000000..64e8fc6 --- /dev/null +++ b/5pkgs/mergerfs/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchgit, fuse, pkgconfig, which, attr, pandoc, git }: + +stdenv.mkDerivation rec { + name = "mergerfs-${version}"; + version = "2.14.0"; + + # not using fetchFromGitHub because of changelog being built with git log + src = fetchgit { + url = "https://github.com/trapexit/mergerfs"; + rev = "refs/tags/${version}"; + sha256 = "0j5r96xddlj5gp3n1xhfwjmr6yf861xg3hgby4p078c8zfriq5rm"; + deepClone = true; + }; + + buildInputs = [ fuse pkgconfig which attr pandoc git ]; + + makeFlags = [ "PREFIX=$(out)" "XATTR_AVAILABLE=1" ]; + + + meta = { + homepage = https://github.com/trapexit/mergerfs; + description = "a FUSE based union filesystem"; + license = stdenv.lib.licenses.isc; + maintainers = [ stdenv.lib.maintainers.makefu ]; + }; +}