Merge #22649: libxml2: add icuSupport ? false
This causes no rebuilds by default.
This commit is contained in:
commit
db8ac6144e
|
@ -1,8 +1,11 @@
|
||||||
{ stdenv, lib, fetchurl, zlib, xz, python2, findXMLCatalogs, libiconv, fetchpatch
|
{ stdenv, lib, fetchurl, fetchpatch
|
||||||
, pythonSupport ? (! stdenv ? cross) }:
|
, zlib, xz, python2, findXMLCatalogs, libiconv
|
||||||
|
, pythonSupport ? (! stdenv ? cross)
|
||||||
|
, icuSupport ? false, icu ? null }:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python2;
|
python = python2;
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "libxml2-${version}";
|
name = "libxml2-${version}";
|
||||||
version = "2.9.4";
|
version = "2.9.4";
|
||||||
|
@ -37,9 +40,11 @@ in stdenv.mkDerivation rec {
|
||||||
# RUNPATH for that, leading to undefined references for its users.
|
# RUNPATH for that, leading to undefined references for its users.
|
||||||
++ lib.optional stdenv.isFreeBSD xz;
|
++ lib.optional stdenv.isFreeBSD xz;
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib findXMLCatalogs ];
|
propagatedBuildInputs = [ zlib findXMLCatalogs ] ++ lib.optional icuSupport icu;
|
||||||
|
|
||||||
configureFlags = lib.optional pythonSupport "--with-python=${python}"
|
configureFlags =
|
||||||
|
lib.optional pythonSupport "--with-python=${python}"
|
||||||
|
++ lib.optional icuSupport "--with-icu"
|
||||||
++ [ "--exec_prefix=$dev" ];
|
++ [ "--exec_prefix=$dev" ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
Loading…
Reference in New Issue