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