summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorDavid Anderson <dave@natulte.net>2021-02-17 18:22:07 -0800
committerCole Helbling <cole.e.helbling@outlook.com>2021-02-17 20:18:30 -0800
commit2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83 (patch)
tree3a101263ec0c1aa06b329c0e3984a2fb77da6f7e /pkgs/tools/backup
parent5e260c3c5c8862be32146f92c0541ad73d432a10 (diff)
downloadnixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar.gz
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar.bz2
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar.lz
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar.xz
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.tar.zst
nixpkgs-2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83.zip
zrepl: init at 0.3.1.
Signed-off-by: David Anderson <dave@natulte.net>
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/zrepl/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/backup/zrepl/default.nix b/pkgs/tools/backup/zrepl/default.nix
new file mode 100644
index 00000000000..8d5a5159877
--- /dev/null
+++ b/pkgs/tools/backup/zrepl/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "zrepl";
+  version = "0.3.1";
+
+  src = fetchFromGitHub {
+    owner = "zrepl";
+    repo = "zrepl";
+    rev = "v${version}";
+    sha256 = "sha256-wtUL8GGSJxn9yEdyTWKtkHODfxxLOxojNPlPLRjI9xo=";
+  };
+
+  vendorSha256 = "sha256-4LBX0bD8qirFaFkV52QFU50lEW4eae6iObIa5fFT/wA=";
+
+  subPackages = [ "." ];
+
+  postInstall = ''
+    mkdir -p $out/lib/systemd/system
+    substitute dist/systemd/zrepl.service $out/lib/systemd/system/zrepl.service \
+      --replace /usr/local/bin/zrepl $out/bin/zrepl
+  '';
+
+  meta = with lib; {
+    homepage = "https://zrepl.github.io/";
+    description = "A one-stop, integrated solution for ZFS replication";
+    platforms = platforms.linux;
+    license = licenses.mit;
+    maintainers = with maintainers; [ cole-h danderson ];
+  };
+}