libxml2: Use enableFeature
This commit is contained in:
parent
9d23b95483
commit
e517da3929
@ -32,12 +32,13 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ zlib findXMLCatalogs ] ++ lib.optional icuSupport icu;
|
propagatedBuildInputs = [ zlib findXMLCatalogs ] ++ lib.optional icuSupport icu;
|
||||||
|
|
||||||
configureFlags =
|
configureFlags = [
|
||||||
lib.optional pythonSupport "--with-python=${python}"
|
"--exec_prefix=$dev"
|
||||||
++ lib.optional icuSupport "--with-icu"
|
(lib.enableFeature enableStatic "static")
|
||||||
++ [ "--exec_prefix=$dev" ]
|
(lib.enableFeature enableShared "shared")
|
||||||
++ lib.optional enableStatic "--enable-static"
|
(lib.withFeature icuSupport "icu")
|
||||||
++ lib.optional (!enableShared) "--disable-shared";
|
(lib.withFeatureAs pythonSupport "python" python)
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user