snapper: 0.12.2 -> 0.13.0

Diff: https://github.com/openSUSE/snapper/compare/v0.12.2...v0.13.0

kyehn ea3e1e0e d1231866

+13 -15
+13 -15
pkgs/by-name/sn/snapper/package.nix
··· 25 zlib, 26 }: 27 28 - stdenv.mkDerivation rec { 29 pname = "snapper"; 30 - version = "0.12.2"; 31 32 src = fetchFromGitHub { 33 owner = "openSUSE"; 34 repo = "snapper"; 35 - rev = "v${version}"; 36 - sha256 = "sha256-SHwF9FMfrrf2IXrGjT/lTI8rDltVkRXkAQ9MpeNVeWw="; 37 }; 38 39 strictDeps = true; ··· 62 zlib 63 ]; 64 65 - passthru.tests.snapper = nixosTests.snapper; 66 - 67 postPatch = '' 68 - # Hard-coded root paths, hard-coded root paths everywhere... 69 - for file in {client,client/installation-helper,client/systemd-helper,data,pam,scripts,zypp-plugin}/Makefile.am; do 70 substituteInPlace $file \ 71 - --replace '$(DESTDIR)/usr' "$out" \ 72 - --replace "DESTDIR" "out" \ 73 - --replace "/usr" "$out" 74 done 75 - substituteInPlace pam/Makefile.am \ 76 - --replace '/`basename $(libdir)`' "$out/lib" 77 ''; 78 79 configureFlags = [ ··· 92 $out/lib/systemd/system/* \ 93 $out/share/dbus-1/system-services/* \ 94 ; do 95 - substituteInPlace $file --replace "/usr" "$out" 96 done 97 ''; 98 99 meta = { 100 description = "Tool for Linux filesystem snapshot management"; ··· 104 maintainers = with lib.maintainers; [ markuskowa ]; 105 platforms = lib.platforms.linux; 106 }; 107 - }
··· 25 zlib, 26 }: 27 28 + stdenv.mkDerivation (finalAttrs: { 29 pname = "snapper"; 30 + version = "0.13.0"; 31 32 src = fetchFromGitHub { 33 owner = "openSUSE"; 34 repo = "snapper"; 35 + tag = "v${finalAttrs.version}"; 36 + hash = "sha256-8rIjfulMuh4HzZv08bX7gveJAo2X2GvswmBD3Ziu0NM="; 37 }; 38 39 strictDeps = true; ··· 62 zlib 63 ]; 64 65 + # Hard-coded root paths, hard-coded root paths everywhere... 66 postPatch = '' 67 + for file in {client/installation-helper,client/systemd-helper,data,scripts,zypp-plugin,scripts/completion}/Makefile.am; do 68 substituteInPlace $file \ 69 + --replace-warn '$(DESTDIR)/usr' "$out" \ 70 + --replace-warn "DESTDIR" "out" \ 71 + --replace-warn "/usr" "$out" 72 done 73 ''; 74 75 configureFlags = [ ··· 88 $out/lib/systemd/system/* \ 89 $out/share/dbus-1/system-services/* \ 90 ; do 91 + substituteInPlace $file --replace-warn "/usr" "$out" 92 done 93 ''; 94 + 95 + passthru.tests.snapper = nixosTests.snapper; 96 97 meta = { 98 description = "Tool for Linux filesystem snapshot management"; ··· 102 maintainers = with lib.maintainers; [ markuskowa ]; 103 platforms = lib.platforms.linux; 104 }; 105 + })