Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 36 lines 746 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 zfs, 6}: 7 8stdenv.mkDerivation { 9 pname = "easysnap"; 10 version = "0-unstable-2022-06-03"; 11 12 src = fetchFromGitHub { 13 owner = "sjau"; 14 repo = "easysnap"; 15 rev = "5f961442315a6f7eb8ca5b705bd52fe1e6d7dc42"; 16 sha256 = "sha256-jiKdpwuw0Oil0sxUr/3KJ6Nbfxh8DvBei0yy0nRM+Vs="; 17 }; 18 19 installPhase = '' 20 mkdir -p $out/bin 21 cp easysnap* $out/bin/ 22 23 for i in $out/bin/*; do 24 substituteInPlace $i \ 25 --replace zfs ${zfs}/bin/zfs 26 done 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/sjau/easysnap"; 31 description = "Customizable ZFS Snapshotting tool with zfs send/recv pulling"; 32 license = licenses.gpl3; 33 maintainers = with maintainers; [ sjau ]; 34 }; 35 36}