mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #41915 from nlewo/pr-libxml2-static
libxml2: add static output
This commit is contained in:
commit
ff842faa4d
1 changed files with 7 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue