diff options
author | Peter Simons <simons@cryp.to> | 2009-11-04 10:29:43 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2009-11-04 10:29:43 +0000 |
commit | f9b71e1c54026f180c5d5ab3aa916aec1ecf4431 (patch) | |
tree | d500320f9eefb05408c529de269744dd771e5514 /pkgs/development/interpreters/python/2.6 | |
parent | 36597471273cec11691d9db3f266b0297d094fef (diff) | |
download | nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar.gz nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar.bz2 nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar.lz nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar.xz nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.tar.zst nixlib-f9b71e1c54026f180c5d5ab3aa916aec1ecf4431.zip |
pkgs/development/interpreters/python/2.6/default.nix: updated to version 2.6.4
svn path=/nixpkgs/trunk/; revision=18090
Diffstat (limited to 'pkgs/development/interpreters/python/2.6')
-rw-r--r-- | pkgs/development/interpreters/python/2.6/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/python/2.6/default.nix b/pkgs/development/interpreters/python/2.6/default.nix index ba60f6057c67..7867ccc8cf19 100644 --- a/pkgs/development/interpreters/python/2.6/default.nix +++ b/pkgs/development/interpreters/python/2.6/default.nix @@ -19,6 +19,9 @@ with stdenv.lib; let + majorVersion = "2.6"; + version = "${majorVersion}.4"; + buildInputs = optional (stdenv ? gcc && stdenv.gcc.libc != null) stdenv.gcc.libc ++ [bzip2] @@ -38,11 +41,11 @@ let in stdenv.mkDerivation ( { - name = "python-2.6.3"; + name = "python-${version}"; src = fetchurl { - url = http://www.python.org/ftp/python/2.6.3/Python-2.6.3.tar.bz2; - sha256 = "096wxhibhss3clgcj5n3xx5wmdsqmywk3h3bp68sicp7sy4y6rs3"; + url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.bz2"; + sha256 = "dad8d5575144a210d5cc4fdbc40b8a26386e9cdb1ef58941bec0be02c7cb9d89"; }; patches = [ @@ -53,7 +56,7 @@ stdenv.mkDerivation ( { inherit buildInputs; C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") buildInputs); LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") buildInputs); - configureFlags = ''${if stdenv.isDarwin then "" else " --enable-shared"} --with-wctype-functions''; + configureFlags = ''${if stdenv.isDarwin then "" else " --enable-shared"} --with-threads --enable-unicode --with-wctype-functions''; preConfigure = '' # Purity. @@ -67,7 +70,7 @@ stdenv.mkDerivation ( { setupHook = ./setup-hook.sh; postInstall = '' - rm -rf $out/lib/python2.6/test + rm -rf "$out/lib/python${majorVersion}/test" ''; passthru = { @@ -77,7 +80,7 @@ stdenv.mkDerivation ( { readlineSupport = readline != null; opensslSupport = openssl != null; tkSupport = (tk != null) && (tcl != null); - libPrefix = "python2.6"; + libPrefix = "python${majorVersion}"; }; meta = { |