aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/apr-util
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2013-12-31 08:00:21 -0600
committerWilliam A. Kennington III <william@wkennington.com>2013-12-31 08:00:21 -0600
commit844ab16b9007bbd0f18b388c9f7feba6713f3994 (patch)
treeb5e7b0501046fbfc07baa764abf8a37d08dc2f11 /pkgs/development/libraries/apr-util
parent184dd198fbcdc1b392f56791702ba4b4d733b991 (diff)
apr-util: Cleanup
Add the required packages to buildInputs. Create a wrapper around apr-1-config so that internal sed commands succeed.
Diffstat (limited to 'pkgs/development/libraries/apr-util')
-rw-r--r--pkgs/development/libraries/apr-util/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix
index 89c2c31ef7a9..e2d72fc7d6b0 100644
--- a/pkgs/development/libraries/apr-util/default.nix
+++ b/pkgs/development/libraries/apr-util/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, apr, expat
+{ stdenv, fetchurl, makeWrapper, apr, expat, gnused
, sslSupport ? true, openssl
, bdbSupport ? false, db4
, ldapSupport ? true, openldap
@@ -8,6 +8,10 @@ assert sslSupport -> openssl != null;
assert bdbSupport -> db4 != null;
assert ldapSupport -> openldap != null;
+let
+ optional = stdenv.lib.optional;
+in
+
stdenv.mkDerivation rec {
name = "apr-util-1.5.3";
@@ -24,7 +28,15 @@ stdenv.mkDerivation rec {
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
'';
- propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
+ propagatedBuildInputs = [ makeWrapper apr expat ]
+ ++ optional sslSupport openssl
+ ++ optional bdbSupport db4
+ ++ optional ldapSupport openldap;
+
+ # Give apr1 access to sed for runtime invocations
+ postInstall = ''
+ wrapProgram $out/bin/apu-1-config --prefix PATH : "${gnused}/bin"
+ '';
enableParallelBuilding = true;