Updated scons to version 1.2.0.

svn path=/nixpkgs/trunk/; revision=16111
This commit is contained in:
Peter Simons 2009-06-30 18:51:01 +00:00
parent 62f9851f07
commit afa04f4576

View File

@ -1,8 +1,18 @@
{stdenv, fetchurl, python, makeWrapper}:
stdenv.mkDerivation rec {
name = "scons-${version}";
version = "1.0.0";
version = "1.2.0";
name = "scons-" + version;
src = fetchurl {
url = "mirror://sourceforge/scons/${name}.tar.gz";
sha256 = "2806451e02a42789decb6d08098b798b6b81a0a39d8d3b2fbdd3fe84ebd8a246";
};
propagatedBuildInputs = [python makeWrapper];
buildPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) --hardlink-scons -O1";
installPhase = "for n in $out/bin/*; do wrapProgram $n --set PYTHONPATH \"$(toPythonPath $out):$PYTHONPATH:\$PYTHONPATH\"; done";
meta = {
homepage = "http://scons.org/";
description = "An improved, cross-platform substitute for Make";
@ -15,15 +25,4 @@ stdenv.mkDerivation rec {
software.
'';
};
src = fetchurl {
url = "mirror://sourceforge/scons/scons-${version}.tar.gz";
sha256 = "13nyy7n0iddr91r136fj15brni8r5f3j6cx57w5aqfvmnb0lv51x";
};
propagatedBuildInputs = [python makeWrapper];
buildPhase = "true";
installPhase =
''
python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) --hardlink-scons -O1
for n in $out/bin/*; do wrapProgram $n --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH:\$PYTHONPATH"; done
'';
}