summary refs log tree commit diff
path: root/pkgs/tools/networking/uwimap
diff options
context:
space:
mode:
authorJason \"Don\" O'Conal <lovek323@gmail.com>2013-07-14 11:47:14 +1000
committerVladimír Čunát <vcunat@gmail.com>2013-07-28 09:41:58 +0200
commitb4105cfaff70e88058c179b0f9cac87af6e034fe (patch)
treeed3479ff59188c5700a77bae04d9bd548ac97cf8 /pkgs/tools/networking/uwimap
parent5b4e0207ba57e100c3cbd78b8ffe2884a1ff3097 (diff)
downloadnixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar.gz
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar.bz2
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar.lz
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar.xz
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.tar.zst
nixpkgs-b4105cfaff70e88058c179b0f9cac87af6e034fe.zip
php53: fix build on darwin (close #748)
* add empty unix.h header
* build with kerberos
* ensure the binary has no extension
Diffstat (limited to 'pkgs/tools/networking/uwimap')
-rw-r--r--pkgs/tools/networking/uwimap/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/tools/networking/uwimap/default.nix b/pkgs/tools/networking/uwimap/default.nix
index 5ffeb53dd29..54390d4f9ee 100644
--- a/pkgs/tools/networking/uwimap/default.nix
+++ b/pkgs/tools/networking/uwimap/default.nix
@@ -8,17 +8,23 @@ stdenv.mkDerivation {
     sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
   };
 
-  makeFlags = "lnp" # Linux with PAM modules
+  makeFlags = if stdenv.isDarwin
+    then "osx"
+    else "lnp" # Linux with PAM modules;
     # -fPIC is required to compile php with imap on x86_64 systems
     + stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC";
 
-  buildInputs = [ pam openssl ];
+  buildInputs = [ openssl ]
+    ++ stdenv.lib.optional (!stdenv.isDarwin) pam;
 
   patchPhase = ''
     sed -i -e s,/usr/local/ssl,${openssl}, \
       src/osdep/unix/Makefile
   '';
 
+  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
+    "-I${openssl}/include/openssl";
+
   installPhase = ''
     mkdir -p $out/bin $out/lib $out/include
     cp c-client/*.h c-client/linkage.c $out/include