From cb5483a8061d9f33074f9ad1d5dc50ce00cb0292 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 11 Nov 2025 11:00:42 +0900 Subject: [PATCH] cryptpad: fix darwin build MacOS filesystem is not case sensitive and file collisions break hash, this should fix that problem. Co-authored-by: eljamm --- pkgs/by-name/cr/cryptpad/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/cr/cryptpad/package.nix b/pkgs/by-name/cr/cryptpad/package.nix index 7dc45e0f3b18..6a7576478dd7 100644 --- a/pkgs/by-name/cr/cryptpad/package.nix +++ b/pkgs/by-name/cr/cryptpad/package.nix @@ -146,7 +146,11 @@ buildNpmPackage { owner = "cryptpad"; repo = "cryptpad"; tag = version; - hash = "sha256-veLtKjrk1CZe2u3MkozsPK98hyhdsWbQGUxh8oWjLXg="; + hash = "sha256-C5vj8vgSzR81NJhCSlY9sEoSAQs3ckeoCrChrSTTIso="; + # case-insensitive file results in different hash on darwin, delete to avoid collision + postFetch = '' + find $out -iname "funding.json" -delete + ''; }; npmDepsHash = "sha256-d/2JKGdC/tgDOo4Qr/0g83lh5gW6Varr0vkZUZe+WTA=";