diff options
author | Janik <80165193+Janik-Haag@users.noreply.github.com> | 2023-06-27 00:24:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 00:24:36 +0200 |
commit | 974b43038e4a9b9432071874c996be3703511602 (patch) | |
tree | a70566e4b3e78689da69fdefe4a421f406cf9265 /pkgs/build-support | |
parent | d784a110b6405473678a4d0b16072fabc32a7ce7 (diff) | |
parent | b06a89a01ccf2ef8175e24b1ea58f33d7d594176 (diff) |
Merge pull request #236976 from amarshall/zip-reproducible
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchfirefoxaddon/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/pkgs/build-support/fetchfirefoxaddon/default.nix b/pkgs/build-support/fetchfirefoxaddon/default.nix index fe9ff5c469bad..41eaa550ea274 100644 --- a/pkgs/build-support/fetchfirefoxaddon/default.nix +++ b/pkgs/build-support/fetchfirefoxaddon/default.nix @@ -1,7 +1,13 @@ -{stdenv, unzip, jq, zip, fetchurl,writeScript, ...}: +{ stdenv +, fetchurl +, jq +, strip-nondeterminism +, unzip +, writeScript +, zip +}: -{ - name +{ name , url ? null , md5 ? "" , sha1 ? "" @@ -14,7 +20,8 @@ let extid = if fixedExtid == null then "nixos@${name}" else fixedExtid; - source = if url == null then src else fetchurl { + source = if url == null then src else + fetchurl { url = url; inherit md5 sha1 sha256 sha512 hash; }; @@ -38,7 +45,14 @@ 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 = [ unzip zip jq ]; + + nativeBuildInputs = [ + jq + strip-nondeterminism + unzip + zip + ]; } |