Merge pull request #233974 from onny/nc4nix-stable

nc4nix: add patch to fix unstable package updates

authored by Jonas Heinrich and committed by GitHub 36ed883c 3b8df7ff

+12 -3
+12 -3
pkgs/development/tools/nc4nix/default.nix
··· 8 9 buildGoModule rec { 10 pname = "nc4nix"; 11 - version = "unstable-2022-12-07"; 12 13 src = fetchFromGitHub { 14 owner = "helsinki-systems"; 15 repo = "nc4nix"; 16 - rev = "c556a596b1d40ff69b71adab257ec5ae51ba4df1"; 17 - sha256 = "sha256-EIPCMiVTf0ryXRMRGhepORaOlimt3/funvUdORRbVa8="; 18 }; 19 20 patches = [ 21 # Switch hash calculation method 22 (fetchpatch { 23 url = "https://github.com/helsinki-systems/nc4nix/commit/88c182fbdddef148e086fa86438dcd72208efd75.patch"; 24 sha256 = "sha256-zAF0+t9wHrKhhyD0+/d58BiaavLHfxO8X5J6vNlEWx0="; 25 name = "switch_hash_calculation_method.patch"; 26 }) 27 # Add package selection command line argument 28 (fetchpatch { 29 url = "https://github.com/helsinki-systems/nc4nix/pull/2/commits/449eec89538df4e92106d06046831202eb84a1db.patch"; 30 sha256 = "sha256-qAAbR1G748+2vwwfAhpe8luVEIKNGifqXqTV9QqaUFc="; 31 name = "add_package_selection_command_line_arg.patch"; 32 }) 33 ]; 34
··· 8 9 buildGoModule rec { 10 pname = "nc4nix"; 11 + version = "unstable-2023-05-25"; 12 13 src = fetchFromGitHub { 14 owner = "helsinki-systems"; 15 repo = "nc4nix"; 16 + rev = "14cab9b2f8628ae6668c1d01519f558069f7f675"; 17 + sha256 = "sha256-iy9jJMRu0SkfrDufO6WAObqdiusvwhyv+GGHVrD3CV4="; 18 }; 19 20 patches = [ 21 # Switch hash calculation method 22 + # https://github.com/helsinki-systems/nc4nix/pull/3 23 (fetchpatch { 24 url = "https://github.com/helsinki-systems/nc4nix/commit/88c182fbdddef148e086fa86438dcd72208efd75.patch"; 25 sha256 = "sha256-zAF0+t9wHrKhhyD0+/d58BiaavLHfxO8X5J6vNlEWx0="; 26 name = "switch_hash_calculation_method.patch"; 27 }) 28 # Add package selection command line argument 29 + # https://github.com/helsinki-systems/nc4nix/pull/2 30 (fetchpatch { 31 url = "https://github.com/helsinki-systems/nc4nix/pull/2/commits/449eec89538df4e92106d06046831202eb84a1db.patch"; 32 sha256 = "sha256-qAAbR1G748+2vwwfAhpe8luVEIKNGifqXqTV9QqaUFc="; 33 name = "add_package_selection_command_line_arg.patch"; 34 + }) 35 + # Only consider (new) stable releases of NC apps 36 + # https://github.com/helsinki-systems/nc4nix/issues/4 37 + (fetchpatch { 38 + url = "https://github.com/helsinki-systems/nc4nix/pull/5/commits/076a188bf30203ddea0217d83f2e3b16f3b9392b.patch"; 39 + sha256 = "sha256-N7X9j0tWD8ZAWjXXCXGITl/EBbrIbKbHJHyskT1rVTs="; 40 + name = "only_consider_stable_releases.patch"; 41 }) 42 ]; 43