forked from mirrors/nixpkgs
firefox-bin: Fail on unsupported architectures
This commit is contained in:
parent
5fc4f17862
commit
d824944314
|
@ -54,9 +54,12 @@ let
|
|||
|
||||
inherit (generated) version sources;
|
||||
|
||||
arch = if stdenv.system == "i686-linux"
|
||||
then "linux-i686"
|
||||
else "linux-x86_64";
|
||||
mozillaPlatforms = {
|
||||
"i686-linux" = "linux-i686";
|
||||
"x86_64-linux" = "linux-x86_64";
|
||||
};
|
||||
|
||||
arch = mozillaPlatforms.${stdenv.system};
|
||||
|
||||
isPrefixOf = prefix: string:
|
||||
builtins.substring 0 (builtins.stringLength prefix) string == prefix;
|
||||
|
@ -185,7 +188,7 @@ stdenv.mkDerivation {
|
|||
free = false;
|
||||
url = http://www.mozilla.org/en-US/foundation/trademarks/policy/;
|
||||
};
|
||||
platforms = platforms.linux;
|
||||
platforms = builtins.attrNames mozillaPlatforms;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue