mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
apr-util: Split into multiple outputs
Also fixup more .la files to avoid unnecessary -dev dependencies.
This commit is contained in:
parent
55b0097c4c
commit
44742f836d
@ -19,6 +19,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0bn81pfscy9yjvbmyx442svf43s6dhrdfcsnkpxz43fai5qk5kx6";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" ];
|
||||
outputBin = "dev";
|
||||
|
||||
configureFlags = ''
|
||||
--with-apr=${apr} --with-expat=${expat}
|
||||
${optionalString (!stdenv.isCygwin) "--with-crypto"}
|
||||
@ -37,8 +40,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Give apr1 access to sed for runtime invocations
|
||||
postInstall = ''
|
||||
substituteInPlace $out/lib/libaprutil-1.la --replace "${expat}/lib" "${expat.out}/lib"
|
||||
wrapProgram $out/bin/apu-1-config --prefix PATH : "${gnused}/bin"
|
||||
for f in $out/lib/*.la $out/lib/apr-util-1/*.la; do
|
||||
substituteInPlace $f --replace "${expat.dev}/lib" "${expat.out}/lib"
|
||||
done
|
||||
wrapProgram $dev/bin/apu-1-config --prefix PATH : "${gnused}/bin"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
Loading…
Reference in New Issue
Block a user