diff options
author | Antoine Eiche <lewo@abesis.fr> | 2018-06-12 21:13:11 +0200 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2018-06-13 09:20:02 +0200 |
commit | 1897c352f55f5c5e7b63f252456d091d0fbdbcf7 (patch) | |
tree | ec209a1826c3110d732a6d0d2721cc5778d5c0e7 /pkgs/development/libraries/libxml2 | |
parent | 69ffc8dc6a7724068b41a5d079e897c36083616d (diff) |
libxml2: add static output
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index be2f83cb498e0..1551d40324712 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -17,7 +17,7 @@ in stdenv.mkDerivation rec { sha256 = "0ci7is75bwqqw2p32vxvrk6ds51ik7qgx73m920rakv5jlayax0b"; }; - outputs = [ "bin" "dev" "out" "man" "doc" ] + outputs = [ "bin" "dev" "out" "man" "doc" "static" ] ++ lib.optional pythonSupport "py"; propagatedBuildOutputs = "out bin" + lib.optionalString pythonSupport " py"; @@ -32,7 +32,7 @@ in stdenv.mkDerivation rec { configureFlags = lib.optional pythonSupport "--with-python=${python}" ++ lib.optional icuSupport "--with-icu" - ++ [ "--exec_prefix=$dev" ]; + ++ [ "--exec_prefix=$dev" "--enable-static" ]; enableParallelBuilding = true; @@ -59,6 +59,11 @@ in stdenv.mkDerivation rec { moveToOutput share/man/man1 "$bin" ''; + postInstall = '' + mkdir -p $static/lib + cp .libs/libxml2.a $static/lib/ + ''; + passthru = { inherit version; pythonSupport = pythonSupport; }; meta = { |