summary refs log tree commit diff
path: root/pkgs/development/libraries/apr-util/default.nix
diff options
context:
space:
mode:
authorjanus <janus@xn--kn-1ia.guru>2015-11-28 00:46:00 +0000
committerjanus <janus@xn--kn-1ia.guru>2016-01-01 17:01:13 +0000
commita472d836f674fe388018aaee75983e3400a77db4 (patch)
tree5ee0c10f33ad74f04d5d3785de81fbb04b4e57f2 /pkgs/development/libraries/apr-util/default.nix
parent9897b356612c4bb06a9c9d688da52134dfe8fb95 (diff)
downloadnixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar.gz
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar.bz2
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar.lz
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar.xz
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.tar.zst
nixpkgs-a472d836f674fe388018aaee75983e3400a77db4.zip
FreeBSD: apr-util, cyrus-sasl, berkeley db, glib, gnutls, kerberos, libelf-freebsd, openldap, serf, guile, tet, shishi, gawk, gnugrep
Diffstat (limited to 'pkgs/development/libraries/apr-util/default.nix')
-rw-r--r--pkgs/development/libraries/apr-util/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix
index c35520f22fd..e0b2832f6e4 100644
--- a/pkgs/development/libraries/apr-util/default.nix
+++ b/pkgs/development/libraries/apr-util/default.nix
@@ -3,6 +3,7 @@
 , bdbSupport ? false, db
 , ldapSupport ? !stdenv.isCygwin, openldap
 , libiconv
+, cyrus_sasl, autoreconfHook
 }:
 
 assert sslSupport -> openssl != null;
@@ -19,19 +20,24 @@ stdenv.mkDerivation rec {
     sha256 = "0bn81pfscy9yjvbmyx442svf43s6dhrdfcsnkpxz43fai5qk5kx6";
   };
 
+  patches = stdenv.lib.optionals stdenv.isFreeBSD [ ./include-static-dependencies.patch ];
+
+  buildInputs = stdenv.lib.optionals stdenv.isFreeBSD [ autoreconfHook ];
+
   configureFlags = ''
     --with-apr=${apr} --with-expat=${expat}
     ${optionalString (!stdenv.isCygwin) "--with-crypto"}
     ${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
     ${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"}
-    ${stdenv.lib.optionalString ldapSupport "--with-ldap"}${
+    ${stdenv.lib.optionalString ldapSupport "--with-ldap=ldap"}${
       optionalString stdenv.isCygwin "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"}
   '';
 
   propagatedBuildInputs = [ makeWrapper apr expat libiconv ]
     ++ optional sslSupport openssl
     ++ optional bdbSupport db
-    ++ optional ldapSupport openldap;
+    ++ optional ldapSupport openldap
+    ++ optional stdenv.isFreeBSD cyrus_sasl;
 
   # Give apr1 access to sed for runtime invocations
   postInstall = ''