···102103 nameArray = builtins.map(a: a.name) (lib.optionals usesNixExtensions nixExtensions);
104105- requiresSigning = browser ? MOZ_REQUIRE_SIGNING
106- -> toString browser.MOZ_REQUIRE_SIGNING != "";
107-108 # Check that every extension has a unqiue .name attribute
109 # and an extid attribute
110 extensions = if nameArray != (lib.unique nameArray) then
111 throw "Firefox addon name needs to be unique"
112- else if requiresSigning && !lib.hasSuffix "esr" browser.name then
113- throw "Nix addons are only supported without signature enforcement (eg. Firefox ESR)"
114 else builtins.map (a:
115 if ! (builtins.hasAttr "extid" a) then
116 throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"
···102103 nameArray = builtins.map(a: a.name) (lib.optionals usesNixExtensions nixExtensions);
104000105 # Check that every extension has a unqiue .name attribute
106 # and an extid attribute
107 extensions = if nameArray != (lib.unique nameArray) then
108 throw "Firefox addon name needs to be unique"
109+ else if browser.requireSigning then
110+ throw "Nix addons are only supported with signature enforcement disabled"
111 else builtins.map (a:
112 if ! (builtins.hasAttr "extid" a) then
113 throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"