Make callPackage_i686 fail on on-x86
...instead of silently producing an i686 derivation.
This commit is contained in:
parent
5ab47ccfd1
commit
17218f0bac
@ -27,7 +27,9 @@ with pkgs;
|
|||||||
# Used by wine, firefox with debugging version of Flash, ...
|
# Used by wine, firefox with debugging version of Flash, ...
|
||||||
pkgsi686Linux = forceSystem "i686-linux" "i386";
|
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,
|
# A stdenv capable of building 32-bit binaries. On x86_64-linux,
|
||||||
# it uses GCC compiled with multilib support; on i686-linux, it's
|
# it uses GCC compiled with multilib support; on i686-linux, it's
|
||||||
|
Loading…
x
Reference in New Issue
Block a user