mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
Merge #22649: libxml2: add icuSupport ? false
This causes no rebuilds by default. Fixes #22623, kind of.
(cherry picked from commit db8ac6144e)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
{ stdenv, lib, fetchurl, zlib, xz, python, findXMLCatalogs, libiconv, fetchpatch
|
||||
, supportPython ? (! stdenv ? cross) }:
|
||||
{ stdenv, lib, fetchurl, fetchpatch
|
||||
, zlib, xz, python, findXMLCatalogs, libiconv
|
||||
, supportPython ? (! stdenv ? cross)
|
||||
, icuSupport ? false, icu ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "libxml2-${version}";
|
||||
version = "2.9.4";
|
||||
|
||||
@@ -35,9 +38,11 @@ stdenv.mkDerivation rec {
|
||||
# RUNPATH for that, leading to undefined references for its users.
|
||||
++ lib.optional stdenv.isFreeBSD xz;
|
||||
|
||||
propagatedBuildInputs = [ zlib findXMLCatalogs ];
|
||||
propagatedBuildInputs = [ zlib findXMLCatalogs ] ++ lib.optional icuSupport icu;
|
||||
|
||||
configureFlags = lib.optional supportPython "--with-python=${python}"
|
||||
configureFlags =
|
||||
lib.optional supportPython "--with-python=${python}"
|
||||
++ lib.optional icuSupport "--with-icu"
|
||||
++ [ "--exec_prefix=$dev" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
Reference in New Issue
Block a user