From 2e02abd798f741887ab4e5983c29e1c22f754c9b Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 9 Jun 2023 19:45:50 -0400 Subject: [PATCH] fetchfirefoxaddon: make reproducible --- pkgs/build-support/fetchfirefoxaddon/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/build-support/fetchfirefoxaddon/default.nix b/pkgs/build-support/fetchfirefoxaddon/default.nix index 3ef344a209a4..41eaa550ea27 100644 --- a/pkgs/build-support/fetchfirefoxaddon/default.nix +++ b/pkgs/build-support/fetchfirefoxaddon/default.nix @@ -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 ];