diff options
Diffstat (limited to 'pkgs/build-support/fetchfirefoxaddon/default.nix')
-rw-r--r-- | pkgs/build-support/fetchfirefoxaddon/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/build-support/fetchfirefoxaddon/default.nix b/pkgs/build-support/fetchfirefoxaddon/default.nix index 4b7c68484d2e..9efe9197d687 100644 --- a/pkgs/build-support/fetchfirefoxaddon/default.nix +++ b/pkgs/build-support/fetchfirefoxaddon/default.nix @@ -1,16 +1,20 @@ {stdenv, lib, coreutils, unzip, jq, zip, fetchurl,writeScript, ...}: -{ name + +{ + name , url , md5 ? "" , sha1 ? "" , sha256 ? "" , sha512 ? "" +, fixedExtid ? null , hash ? "" }: + stdenv.mkDerivation rec { inherit name; - extid = "${src.outputHash}@${name}"; + extid = if fixedExtid == null then "nixos@${name}" else fixedExtid; passthru = { exitd=extid; }; @@ -35,4 +39,3 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ coreutils unzip zip jq ]; } - |