Merge pull request #31281 from lheckemann/firefox-bin-arch-check
firefox-bin: Fail on unsupported architectures
This commit is contained in:
commit
5db01ac420
@ -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 New Issue
Block a user