mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
apr-util: Cleanup
Add the required packages to buildInputs. Create a wrapper around apr-1-config so that internal sed commands succeed.
This commit is contained in:
parent
184dd198fb
commit
844ab16b90
1 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue