1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Make callPackage_i686 fail on on-x86

...instead of silently producing an i686 derivation.
This commit is contained in:
Tuomas Tynkkynen 2017-12-03 17:17:34 +02:00
parent 5ab47ccfd1
commit 17218f0bac

View file

@ -27,7 +27,9 @@ with pkgs;
# Used by wine, firefox with debugging version of Flash, ...
pkgsi686Linux = forceSystem "i686-linux" "i386";
callPackage_i686 = pkgsi686Linux.callPackage;
callPackage_i686 = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux"
then pkgsi686Linux.callPackage
else throw "callPackage_i686 not supported on system '${stdenv.system}'";
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
# it uses GCC compiled with multilib support; on i686-linux, it's