boost: Don't use stdenv ? cross
This commit is contained in:
parent
67ae0f0370
commit
df8c390a5a
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, libiconv
|
{ stdenv, fetchurl, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, libiconv
|
||||||
, hostPlatform
|
, buildPlatform, hostPlatform
|
||||||
, toolset ? if stdenv.cc.isClang then "clang" else null
|
, toolset ? if stdenv.cc.isClang then "clang" else null
|
||||||
, enableRelease ? true
|
, enableRelease ? true
|
||||||
, enableDebug ? false
|
, enableDebug ? false
|
||||||
@ -148,13 +148,13 @@ stdenv.mkDerivation {
|
|||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ expat zlib bzip2 libiconv ]
|
buildInputs = [ expat zlib bzip2 libiconv ]
|
||||||
++ stdenv.lib.optionals (! stdenv ? cross) [ python icu ]
|
++ stdenv.lib.optionals (hostPlatform == buildPlatform) [ python icu ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
configureScript = "./bootstrap.sh";
|
configureScript = "./bootstrap.sh";
|
||||||
configureFlags = commonConfigureFlags
|
configureFlags = commonConfigureFlags
|
||||||
++ [ "--with-python=${python.interpreter}" ]
|
++ [ "--with-python=${python.interpreter}" ]
|
||||||
++ optional (! stdenv ? cross) "--with-icu=${icu.dev}"
|
++ optional (hostPlatform == buildPlatform) "--with-icu=${icu.dev}"
|
||||||
++ optional (toolset != null) "--with-toolset=${toolset}";
|
++ optional (toolset != null) "--with-toolset=${toolset}";
|
||||||
|
|
||||||
buildPhase = builder nativeB2Args;
|
buildPhase = builder nativeB2Args;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user