diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index fc417b2b58a..dfaa340dcf9 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { ${if ldapSupport then "--with-ldap" else ""} ''; - buildInputs = if ldapSupport then [ openldap ] else []; + propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap; passthru = { inherit bdbSupport; diff --git a/pkgs/servers/http/apache-httpd/default.nix b/pkgs/servers/http/apache-httpd/default.nix index 73dd676e3fb..fd01be65e5d 100644 --- a/pkgs/servers/http/apache-httpd/default.nix +++ b/pkgs/servers/http/apache-httpd/default.nix @@ -17,8 +17,7 @@ stdenv.mkDerivation rec { }; buildInputs = [perl apr aprutil pcre] ++ - stdenv.lib.optional sslSupport openssl ++ - stdenv.lib.optional ldapSupport openldap; + stdenv.lib.optional sslSupport openssl; # An apr-util header file includes an apr header file # through #include "" (quotes)