Make callPackage_i686 fail on on-x86
...instead of silently producing an i686 derivation.
This commit is contained in:
parent
5ab47ccfd1
commit
17218f0bac
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue