summary refs log tree commit diff
path: root/pkgs/tools/backup/easysnap/default.nix
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-11-02 15:01:47 +0100
committerGitHub <noreply@github.com>2018-11-02 15:01:47 +0100
commite23ebd02ab2359dbd2d9a86a8822424ce330100d (patch)
tree3687893ce2848cae7f308921474e7fd341c03d21 /pkgs/tools/backup/easysnap/default.nix
parent87e4e1ba72dafd0ea1208cd959d047c04612b4aa (diff)
parentdf51c5ef808d01a72ce3990254c880c389c7f2d4 (diff)
downloadnixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar.gz
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar.bz2
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar.lz
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar.xz
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.tar.zst
nixlib-e23ebd02ab2359dbd2d9a86a8822424ce330100d.zip
Merge pull request #49347 from sjau/easysnap-init
easysnap: init at 2018-10-28
Diffstat (limited to 'pkgs/tools/backup/easysnap/default.nix')
-rw-r--r--pkgs/tools/backup/easysnap/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/backup/easysnap/default.nix b/pkgs/tools/backup/easysnap/default.nix
new file mode 100644
index 000000000000..a8c726c9e161
--- /dev/null
+++ b/pkgs/tools/backup/easysnap/default.nix
@@ -0,0 +1,31 @@
+{stdenv, fetchFromGitHub, zfs }:
+
+stdenv.mkDerivation rec {
+  name = "easysnap-${version}";
+  version = "unstable-2018-10-28";
+
+  src = fetchFromGitHub {
+    owner = "sjau";
+    repo = "easysnap";
+    rev = "aa2768762da7730aa3eb90fdc2190a8359976edc";
+    sha256 = "0csn7capsmlkin4cf1fgl766gvszvqfllqkiyz0g9bvbapxv7nba";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp -n easysnap* $out/bin/
+
+    for i in $out/bin/*; do
+      substituteInPlace $i \
+        --replace zfs ${zfs}/bin/zfs
+    done
+  '';
+
+  meta = with stdenv.lib; {
+    homepage    = https://github.com/sjau/easysnap;
+    description = "Customizable ZFS Snapshotting tool with zfs send/recv pulling";
+    license     = licenses.gpl3;
+    maintainers = with maintainers; [ sjau ];
+  };
+
+}