diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-04-26 10:50:48 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-04-26 10:52:18 +0200 |
commit | 387915e99c5c90d8200ef3e86e9f42d8568dbf31 (patch) | |
tree | 3c1778dd0143ae73feb05034fdff85c5ffbe7611 /pkgs/development/interpreters/python | |
parent | 626e5bd4dd94b04f51638cc48ac85fc658c7cc3f (diff) | |
download | nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar.gz nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar.bz2 nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar.lz nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar.xz nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.tar.zst nixlib-387915e99c5c90d8200ef3e86e9f42d8568dbf31.zip |
python3*: port the fix from parent commit
I really love such copied expressions... but this case was easy compared to usual consequences of file-copying in long-running branches.
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/3.2/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/interpreters/python/3.3/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/interpreters/python/3.5/default.nix | 16 |
3 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/development/interpreters/python/3.2/default.nix b/pkgs/development/interpreters/python/3.2/default.nix index 91f962efcf4a..8a2d24d76f98 100644 --- a/pkgs/development/interpreters/python/3.2/default.nix +++ b/pkgs/development/interpreters/python/3.2/default.nix @@ -44,8 +44,8 @@ stdenv.mkDerivation { ${optionalString stdenv.isDarwin ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"''} configureFlagsArray=( --enable-shared --with-threads --with-wide-unicode - 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"}" ) ''; diff --git a/pkgs/development/interpreters/python/3.3/default.nix b/pkgs/development/interpreters/python/3.3/default.nix index b9cb46562122..60d56597ea0f 100644 --- a/pkgs/development/interpreters/python/3.3/default.nix +++ b/pkgs/development/interpreters/python/3.3/default.nix @@ -46,8 +46,8 @@ stdenv.mkDerivation { ${optionalString stdenv.isDarwin ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"''} 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"}" ) ''; diff --git a/pkgs/development/interpreters/python/3.5/default.nix b/pkgs/development/interpreters/python/3.5/default.nix index 504c85ac38d2..15e02d1ab3ed 100644 --- a/pkgs/development/interpreters/python/3.5/default.nix +++ b/pkgs/development/interpreters/python/3.5/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 = "1j95yx32ggqx8jf13h3c8qfp34ixpyg8ipqcdjmn143d6q67rmf6"; }; - 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 ]; }; } |