mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
0ea4cf3255
svn path=/nixpkgs/trunk/; revision=4153
17 lines
406 B
Nix
17 lines
406 B
Nix
{stdenv, fetchurl, zlib ? null, zlibSupport ? true}:
|
|
|
|
assert zlibSupport -> zlib != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "python-2.4.2";
|
|
src = fetchurl {
|
|
url = http://www.python.org/ftp/python/2.4.2/Python-2.4.2.tar.bz2;
|
|
md5 = "98db1465629693fc434d4dc52db93838";
|
|
};
|
|
buildInputs = [
|
|
(if zlibSupport then zlib else null)
|
|
];
|
|
inherit zlibSupport;
|
|
configureFlags = "--enable-shared";
|
|
}
|