From 3be6cea88aa34cabbcb2a742dda13731ac296efa Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 24 Jun 2023 11:33:23 +0200 Subject: [PATCH] nc4nix: apply patch to fix invalid lock entries Closes #239011 --- pkgs/development/tools/nc4nix/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/nc4nix/default.nix b/pkgs/development/tools/nc4nix/default.nix index c8bddd684925..acfac70d4bc4 100644 --- a/pkgs/development/tools/nc4nix/default.nix +++ b/pkgs/development/tools/nc4nix/default.nix @@ -6,7 +6,7 @@ , fetchpatch }: -buildGoModule rec { +buildGoModule { pname = "nc4nix"; version = "unstable-2023-06-06"; @@ -25,6 +25,15 @@ buildGoModule rec { sha256 = "sha256-0JxyhSQLtlgLtsMv82wMjQHGdmOoQ2dcPPNAw2cFByE="; name = "switch_hash_calculation_method.patch"; }) + + # Fix invalid entries (pre-releases of apps are not to be taken into account, + # but if only pre-releases are compatible with a given Nextcloud version, + # invalid entries are generated) + (fetchpatch { + url = "https://github.com/helsinki-systems/nc4nix/commit/c48131b5ca382585fd3294d51d59acc1e92fadb1.patch"; + sha256 = "sha256-/zc3Smjd6CksC5wUvoB6uAyTzPcIgqimb+zASIuTft0="; + excludes = [ "25.json" "26.json" "27.json" ]; + }) ]; vendorSha256 = "sha256-uhINWxFny/OY7M2vV3ehFzP90J6Z8cn5IZHWOuEg91M=";