about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/3.4
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-07-09 00:15:22 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2014-07-09 00:18:11 -0400
commit08f2ce1172b558ee1f447893ad392c27cea850ce (patch)
treeba266fffc0dd71df4c9b73e3761da33c24f703b3 /pkgs/development/interpreters/python/3.4
parent1e5528c15ae9503c271b89dd4780167a369747c9 (diff)
downloadnixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar.gz
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar.bz2
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar.lz
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar.xz
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.tar.zst
nixlib-08f2ce1172b558ee1f447893ad392c27cea850ce.zip
Fix Python 3.{2,3,4} on Darwin.
This removes the `-lcrypt` linker flag when compiling under Darwin.
Diffstat (limited to 'pkgs/development/interpreters/python/3.4')
-rw-r--r--pkgs/development/interpreters/python/3.4/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/python/3.4/default.nix b/pkgs/development/interpreters/python/3.4/default.nix
index c8d4b69b4309..2ce4413a2c09 100644
--- a/pkgs/development/interpreters/python/3.4/default.nix
+++ b/pkgs/development/interpreters/python/3.4/default.nix
@@ -45,7 +45,7 @@ stdenv.mkDerivation {
     configureFlagsArray=( --enable-shared --with-threads
                           CPPFLAGS="${concatStringsSep " " (map (p: "-I${p}/include") buildInputs)}"
                           LDFLAGS="${concatStringsSep " " (map (p: "-L${p}/lib") buildInputs)}"
-                          LIBS="-lcrypt ${optionalString (ncurses != null) "-lncurses"}"
+                          LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"
                         )
   '';
 
@@ -85,7 +85,7 @@ stdenv.mkDerivation {
       high level dynamic data types.
     '';
     license = stdenv.lib.licenses.psfl;
-    platforms = stdenv.lib.platforms.linux;
-    maintainers = with stdenv.lib.maintainers; [ simons chaoflow iElectric ];
+    platforms = with stdenv.lib.platforms; linux ++ darwin;
+    maintainers = with stdenv.lib.maintainers; [ simons chaoflow iElectric cstrahan ];
   };
 }