Commit cb5483a8 authored by Dominique Martinet's avatar Dominique Martinet
Browse files

cryptpad: fix darwin build



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

Co-authored-by: default avatareljamm <fedi.jamoussi@protonmail.ch>
parent 0bafd706
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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=";