2004-02-17 12:02:31 -08:00
|
|
|
{stdenv, fetchurl, zlib ? null, zlibSupport ? true}:
|
|
|
|
|
|
|
|
assert zlibSupport -> zlib != null;
|
|
|
|
|
2004-03-29 09:23:01 -08:00
|
|
|
stdenv.mkDerivation {
|
2006-12-13 10:03:08 -08:00
|
|
|
name = "python-2.4.4";
|
2003-12-21 12:52:13 -08:00
|
|
|
src = fetchurl {
|
2006-12-13 10:03:08 -08:00
|
|
|
url = http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tar.bz2;
|
|
|
|
md5 = "0ba90c79175c017101100ebf5978e906";
|
2004-02-17 12:02:31 -08:00
|
|
|
};
|
2004-09-18 14:12:25 -07:00
|
|
|
buildInputs = [
|
|
|
|
(if zlibSupport then zlib else null)
|
|
|
|
];
|
2004-03-29 09:23:01 -08:00
|
|
|
inherit zlibSupport;
|
2005-10-26 16:37:53 -07:00
|
|
|
configureFlags = "--enable-shared";
|
2006-12-13 10:03:08 -08:00
|
|
|
|
|
|
|
libPrefix = "python2.4";
|
|
|
|
|
|
|
|
postInstall = "
|
|
|
|
ensureDir $out/nix-support
|
|
|
|
cp ${./setup-hook.sh} $out/nix-support/setup-hook
|
|
|
|
rm -rf $out/lib/python2.4/test
|
|
|
|
";
|
2003-12-21 12:52:13 -08:00
|
|
|
}
|