16 resholve.mkDerivation rec {
20 src = fetchFromGitHub {
24 hash = "sha256-11SQJcD3GqPYBIgaycyKkc62/diVKPuuj2Or97j+NZY=";
27 nativeBuildInputs = [ installShellFiles ];
29 # these may point to paths on remote systems, calculated at runtime, thus we cannot fix them
30 # we can only set their initial values, and let them remain dynamic
32 substituteInPlace zxfer \
33 --replace 'LCAT=""' 'LCAT=${coreutils}/bin/cat' \
34 --replace 'LZFS=$( which zfs )' 'LZFS=${zfs}/bin/zfs'
40 installManPage zxfer.1m zxfer.8
41 install -Dm755 zxfer -t $out/bin/
47 scripts = [ "bin/zxfer" ];
48 interpreter = "${bash}/bin/sh";
59 "kldload" # bsd builtin
60 "kldstat" # bsd builtin
61 "svcadm" # solaris builtin
66 "$PROGRESS_DIALOG" = true;
68 "$input_optionts" = true;
74 "$RSYNC" = [ "rsync" ];
76 execer = [ "cannot:${rsync}/bin/rsync" ];
80 description = "Popular script for managing ZFS snapshot replication";
81 homepage = "https://github.com/allanjude/zxfer";
82 changelog = "https://github.com/allanjude/zxfer/releases/tag/v${version}";
83 license = licenses.bsd2;
84 maintainers = with lib.maintainers; [ urandom ];
85 mainProgram = "zxfer";