diff options
author | David Anderson <dave@natulte.net> | 2021-02-17 18:22:07 -0800 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2021-02-17 20:18:30 -0800 |
commit | 2bb5ff0da2fc8a37ffb81ffe99b8552bbe5abf83 (patch) | |
tree | 3a101263ec0c1aa06b329c0e3984a2fb77da6f7e /pkgs/tools | |
parent | 5e260c3c5c8862be32146f92c0541ad73d432a10 (diff) |
zrepl: init at 0.3.1.
Signed-off-by: David Anderson <dave@natulte.net>
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/backup/zrepl/default.nix | 31 |
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 0000000000000..8d5a51598774c --- /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 ]; + }; +} |