mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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;
|
||||
|
||||
@ -14,7 +14,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
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 ];
|
||||
|
||||
@ -26,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
homepage = http://xmlsoft.org/;
|
||||
description = "A XML parsing library for C";
|
||||
description = "An XML parsing library for C";
|
||||
license = "bsd";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.eelco ];
|
||||
|
Loading…
Reference in New Issue
Block a user