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 {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.5.1.1.tar.gz;
sha256 = "0lxxvn4mjfb83swcbqb5908q4iy53w4ip5i0f9angm2va1jyhd3z";
};
src = fetchurl {
url = "http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-${version}.tar.gz";
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 = {
description = "Python package compiler or something like that";
inherit src;
homepage = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/;
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 {
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];
pythonPackages.buildPythonPackage rec {
name = "pyrex-${version}";
src = fetchurl {
url = "http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-${version}.tar.gz";
sha256 = "18pd9f8al3l6i27cc0ddhgg7hxf28lnfs75x4a8jzscydxgiq5a8";
};
in with localDefs;
stdenv.mkDerivation rec {
name = "pyrex-0.9.6.4";
builder = writeScript (name + "-builder")
(textClosure localDefs [installPythonPackage doForceShare]);
doCheck = false;
meta = {
description = "Python package compiler or something like that";
inherit src;
homepage = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/;
description = "A language for writing Python extension modules";
};
}