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;
|
||||
|
||||
configureFlags =
|
||||
lib.optional pythonSupport "--with-python=${python}"
|
||||
++ lib.optional icuSupport "--with-icu"
|
||||
++ [ "--exec_prefix=$dev" ]
|
||||
++ lib.optional enableStatic "--enable-static"
|
||||
++ lib.optional (!enableShared) "--disable-shared";
|
||||
configureFlags = [
|
||||
"--exec_prefix=$dev"
|
||||
(lib.enableFeature enableStatic "static")
|
||||
(lib.enableFeature enableShared "shared")
|
||||
(lib.withFeature icuSupport "icu")
|
||||
(lib.withFeatureAs pythonSupport "python" python)
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user