fetchfirefoxaddon: make reproducible

This commit is contained in:
Andrew Marshall 2023-06-09 19:45:50 -04:00
parent 3ed22708d0
commit 2e02abd798

View File

@ -1,6 +1,7 @@
{ stdenv
, fetchurl
, jq
, strip-nondeterminism
, unzip
, writeScript
, zip
@ -44,11 +45,13 @@ stdenv.mkDerivation {
echo "$NEW_MANIFEST" > "$out/$UUID/manifest.json"
cd "$out/$UUID"
zip -r -q -FS "$out/$UUID.xpi" *
strip-nondeterminism "$out/$UUID.xpi"
rm -r "$out/$UUID"
'';
nativeBuildInputs = [
jq
strip-nondeterminism
unzip
zip
];