Allow cross-compiling configurations to explicitly give a system string when cross-building nix

svn path=/nixpkgs/trunk/; revision=30458
This commit is contained in:
Shea Levy 2011-11-16 21:04:02 +00:00
parent e895fe5e2f
commit 10cbd00396

View File

@ -36,7 +36,9 @@ stdenv.mkDerivation rec {
--with-dbd-sqlite=${perlPackages.DBDSQLite}/lib/perl5/site_perl
--disable-init-state
CFLAGS=-O3 CXXFLAGS=-O3
'';
'' + stdenv.lib.optionalString (
stdenv.cross ? nix && stdenv.cross.nix ? system
) ''--with-system=${stdenv.cross.nix.system}'';
doCheck = false;
};