libxml2: FreeBSD: add explicit dependency on XZ
This commit is contained in:
parent
737eff7166
commit
b91a3927e6
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, zlib, python ? null, pythonSupport ? true }:
|
{ stdenv, fetchurl, zlib, xz, python ? null, pythonSupport ? true }:
|
||||||
|
|
||||||
assert pythonSupport -> python != null;
|
assert pythonSupport -> python != null;
|
||||||
|
|
||||||
@ -14,7 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = stdenv.lib.optionalString pythonSupport "--with-python=${python}";
|
configureFlags = stdenv.lib.optionalString pythonSupport "--with-python=${python}";
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional pythonSupport [ python ];
|
buildInputs = (stdenv.lib.optional pythonSupport [ python ])
|
||||||
|
|
||||||
|
# Libxml2 has an optional dependency on liblzma. However, on impure
|
||||||
|
# platforms, it may end up using that from /usr/lib, and thus lack a
|
||||||
|
# RUNPATH for that, leading to undefined references for its users.
|
||||||
|
++ (stdenv.lib.optional stdenv.isFreeBSD xz);
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib ];
|
propagatedBuildInputs = [ zlib ];
|
||||||
|
|
||||||
@ -26,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://xmlsoft.org/;
|
homepage = http://xmlsoft.org/;
|
||||||
description = "A XML parsing library for C";
|
description = "An XML parsing library for C";
|
||||||
license = "bsd";
|
license = "bsd";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user