cryptpad: fix darwin build

MacOS filesystem is not case sensitive and file collisions break
hash, this should fix that problem.

Co-authored-by: eljamm <fedi.jamoussi@protonmail.ch>
This commit is contained in:
Dominique Martinet
2025-11-11 11:00:42 +09:00
parent 0bafd706ab
commit cb5483a806

View File

@@ -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=";