From 44742f836d5bc57c1df0bbde3411e5425ed7afb9 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 18 Oct 2015 14:29:23 +0300 Subject: [PATCH] apr-util: Split into multiple outputs Also fixup more .la files to avoid unnecessary -dev dependencies. --- pkgs/development/libraries/apr-util/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index 2832bc724c84..f1c0807144be 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -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;