Fix Pyrex build

This commit is contained in:
Eelco Dolstra 2012-07-18 09:49:27 -04:00
parent cca94ee05e
commit 5750566c2a
2 changed files with 22 additions and 36 deletions

View File

@ -1,26 +1,19 @@
{ stdenv, fetchurl, builderDefs, python }: { stdenv, fetchurl, pythonPackages }:
let let version = "0.9.5.1.1"; in
localDefs = builderDefs.passthru.function { pythonPackages.buildPythonPackage rec {
name = "pyrex-${version}";
src = fetchurl { src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.5.1.1.tar.gz; url = "http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-${version}.tar.gz";
sha256 = "0lxxvn4mjfb83swcbqb5908q4iy53w4ip5i0f9angm2va1jyhd3z"; sha256 = "0lxxvn4mjfb83swcbqb5908q4iy53w4ip5i0f9angm2va1jyhd3z";
}; };
buildInputs = [python]; doCheck = false;
};
in with localDefs;
stdenv.mkDerivation rec {
name = "pyrex-0.9.5.1.1";
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
meta = { meta = {
description = "Python package compiler or something like that"; homepage = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/;
inherit src; description = "A language for writing Python extension modules";
}; };
} }

View File

@ -1,26 +1,19 @@
{ stdenv, fetchurl, builderDefs, python }: { stdenv, fetchurl, pythonPackages }:
let let version = "0.9.6.4"; in
localDefs = builderDefs.passthru.function { pythonPackages.buildPythonPackage rec {
name = "pyrex-${version}";
src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.6.4.tar.gz;
sha256 = "18pd9f8al3l6i27cc0ddhgg7hxf28lnfs75x4a8jzscydxgiq5a8";
};
buildInputs = [python];
src = fetchurl {
url = "http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-${version}.tar.gz";
sha256 = "18pd9f8al3l6i27cc0ddhgg7hxf28lnfs75x4a8jzscydxgiq5a8";
}; };
in with localDefs; doCheck = false;
stdenv.mkDerivation rec {
name = "pyrex-0.9.6.4";
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
meta = { meta = {
description = "Python package compiler or something like that"; homepage = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/;
inherit src; description = "A language for writing Python extension modules";
}; };
} }