···102102103103 nameArray = builtins.map(a: a.name) (lib.optionals usesNixExtensions nixExtensions);
104104105105- requiresSigning = browser ? MOZ_REQUIRE_SIGNING
106106- -> toString browser.MOZ_REQUIRE_SIGNING != "";
107107-108105 # Check that every extension has a unqiue .name attribute
109106 # and an extid attribute
110107 extensions = if nameArray != (lib.unique nameArray) then
111108 throw "Firefox addon name needs to be unique"
112112- else if requiresSigning && !lib.hasSuffix "esr" browser.name then
113113- throw "Nix addons are only supported without signature enforcement (eg. Firefox ESR)"
109109+ else if browser.requireSigning then
110110+ throw "Nix addons are only supported with signature enforcement disabled"
114111 else builtins.map (a:
115112 if ! (builtins.hasAttr "extid" a) then
116113 throw "nixExtensions has an invalid entry. Missing extid attribute. Please use fetchfirefoxaddon"