about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/3.4
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-04-26 10:40:39 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-04-26 10:43:48 +0200
commit626e5bd4dd94b04f51638cc48ac85fc658c7cc3f (patch)
tree9fbb47c7bebf93c6475f7f31cdeb899a9561a5d2 /pkgs/development/interpreters/python/3.4
parentdc062f2c8e4a67fe4951cb8da31a48038a6a8ed7 (diff)
downloadnixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar.gz
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar.bz2
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar.lz
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar.xz
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.tar.zst
nixlib-626e5bd4dd94b04f51638cc48ac85fc658c7cc3f.zip
python3: fix build after 5ff40dded, refactor
The path list was passed in a format not suitable for gcc command-line.
Also, let's utilize that we had `with stdenv.lib;`.
/cc @abbradar.
Diffstat (limited to 'pkgs/development/interpreters/python/3.4')
-rw-r--r--pkgs/development/interpreters/python/3.4/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/interpreters/python/3.4/default.nix b/pkgs/development/interpreters/python/3.4/default.nix
index 6a3ab25c5d40..517dfc3d8b27 100644
--- a/pkgs/development/interpreters/python/3.4/default.nix
+++ b/pkgs/development/interpreters/python/3.4/default.nix
@@ -35,16 +35,16 @@ stdenv.mkDerivation {
   pythonVersion = majorVersion;
   inherit majorVersion version;
 
-  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CF configd ];
+  buildInputs = optionals stdenv.isDarwin [ CF configd ];
 
   src = fetchurl {
     url = "http://www.python.org/ftp/python/${version}/Python-${fullVersion}.tar.xz";
     sha256 = "18kb5c29w04rj4gyz3jngm72sy8izfnbjlm6ajv6rv2m061d75x7";
   };
 
-  NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
+  NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
 
-  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
+  prePatch = optionalString stdenv.isDarwin ''
     substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
   '';
 
@@ -58,8 +58,8 @@ stdenv.mkDerivation {
      ''}
 
     configureFlagsArray=( --enable-shared --with-threads
-                          CPPFLAGS="${makeSearchPathOutput "dev" "include" buildInputs}"
-                          LDFLAGS="${makeLibraryPath buildInputs}"
+                          CPPFLAGS="${concatStringsSep " " (map (p: "-I${getDev p}/include") buildInputs)}"
+                          LDFLAGS="${concatStringsSep " " (map (p: "-L${getLib p}/lib") buildInputs)}"
                           LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"
                         )
   '';
@@ -113,8 +113,8 @@ stdenv.mkDerivation {
       hierarchical packages; exception-based error handling; and very
       high level dynamic data types.
     '';
-    license = stdenv.lib.licenses.psfl;
-    platforms = with stdenv.lib.platforms; linux ++ darwin;
-    maintainers = with stdenv.lib.maintainers; [ simons chaoflow iElectric cstrahan ];
+    license = licenses.psfl;
+    platforms = with platforms; linux ++ darwin;
+    maintainers = with maintainers; [ simons chaoflow iElectric cstrahan ];
   };
 }