Merge pull request #123644 from michaeladler/update-sanoid

authored by Sandro and committed by GitHub 1b969993 c79e3ded

+8 -27
+8 -27
pkgs/tools/backup/sanoid/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, makeWrapper, zfs 1 + { lib, stdenv, fetchFromGitHub, makeWrapper, zfs 2 2 , perlPackages, procps, which, openssh, mbuffer, pv, lzop, gzip, pigz }: 3 3 4 4 with lib; 5 5 6 6 stdenv.mkDerivation rec { 7 7 pname = "sanoid"; 8 - version = "2.0.3"; 8 + version = "2.1.0"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "jimsalterjrs"; 12 12 repo = pname; 13 13 rev = "v${version}"; 14 - sha256 = "1wmymzqg503nmhw8hrblfs67is1l3ljbk2fjvrqwyb01b7mbn80x"; 14 + sha256 = "12g5cjx34ys6ix6ivahsbr3bbbi1fmjwdfdk382z6q71w3pyxxzf"; 15 15 }; 16 16 17 - patches = [ 18 - # Make sanoid look for programs in PATH 19 - (fetchpatch { 20 - url = "https://github.com/jimsalterjrs/sanoid/commit/dc2371775afe08af799d3097d47b48182d1716eb.patch"; 21 - sha256 = "16hlwcbcb8h3ar1ywd2bzr3h3whgbcfk6walmp8z6j74wbx81aav"; 22 - }) 23 - # Make findoid look for programs in PATH 24 - (fetchpatch { 25 - url = "https://github.com/jimsalterjrs/sanoid/commit/44bcd21f269e17765acd1ad0d45161902a205c7b.patch"; 26 - sha256 = "0zqyl8q5sfscqcc07acw68ysnlnh3nb57cigjfwbccsm0zwlwham"; 27 - }) 28 - # Add --cache-dir option 29 - (fetchpatch { 30 - url = "https://github.com/jimsalterjrs/sanoid/commit/a1f5e4c0c006e16a5047a16fc65c9b3663adb81e.patch"; 31 - sha256 = "1bb4g2zxrbvf7fvcgzzxsr1cvxzrxg5dzh89sx3h7qlrd6grqhdy"; 32 - }) 33 - # Add --run-dir option 34 - (fetchpatch { 35 - url = "https://github.com/jimsalterjrs/sanoid/commit/59a07f92b4920952cc9137b03c1533656f48b121.patch"; 36 - sha256 = "11v4jhc36v839gppzvhvzp5jd22904k8xqdhhpx6ghl75yyh4f4s"; 37 - }) 38 - ]; 39 - 40 17 nativeBuildInputs = [ makeWrapper ]; 41 18 buildInputs = with perlPackages; [ perl ConfigIniFiles CaptureTiny ]; 42 19 43 20 installPhase = '' 21 + runHook preInstall 22 + 44 23 mkdir -p "$out/bin" 45 24 mkdir -p "$out/etc/sanoid" 46 25 cp sanoid.defaults.conf "$out/etc/sanoid/sanoid.defaults.conf" ··· 63 42 wrapProgram "$out/bin/findoid" \ 64 43 --prefix PERL5LIB : "$PERL5LIB" \ 65 44 --prefix PATH : "${makeBinPath [ "/run/booted-system/sw" zfs ]}" 45 + 46 + runHook postInstall 66 47 ''; 67 48 68 49 meta = { 69 50 description = "A policy-driven snapshot management tool for ZFS filesystems"; 70 51 homepage = "https://github.com/jimsalterjrs/sanoid"; 71 - license = licenses.gpl3; 52 + license = licenses.gpl3Plus; 72 53 maintainers = with maintainers; [ lopsided98 ]; 73 54 platforms = platforms.all; 74 55 };