2008-09-01 17:11:09 +02:00
|
|
|
{stdenv, fetchurl, python, makeWrapper}:
|
2006-02-02 13:59:41 +01:00
|
|
|
|
2010-08-26 14:24:16 +02:00
|
|
|
let
|
2010-08-26 15:30:25 +02:00
|
|
|
name = "scons";
|
|
|
|
version = "2.0.1";
|
2010-08-26 14:24:16 +02:00
|
|
|
in
|
2010-08-26 15:30:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-08-26 14:24:16 +02:00
|
|
|
name = "${name}-${version}";
|
2009-06-30 20:51:01 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-26 14:24:16 +02:00
|
|
|
url = "mirror://sourceforge/scons/${name}-${version}.tar.gz";
|
|
|
|
sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a";
|
2009-06-30 20:51:01 +02:00
|
|
|
};
|
|
|
|
|
2010-12-07 12:41:25 +01:00
|
|
|
buildInputs = [python makeWrapper];
|
|
|
|
|
2010-10-22 21:10:02 +02:00
|
|
|
preConfigure = ''
|
2010-12-06 19:01:28 +01:00
|
|
|
for i in "script/"*; do
|
2010-10-22 21:10:02 +02:00
|
|
|
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
|
|
|
|
done
|
|
|
|
'';
|
2010-12-07 12:41:25 +01:00
|
|
|
buildPhase = "python setup.py install --prefix=$out --install-data=$out/share --install-lib=$(toPythonPath $out) --symlink-scons -O1";
|
|
|
|
installPhase = "for n in $out/bin/*-${version}; do wrapProgram $n --suffix PYTHONPATH ':' \"$(toPythonPath $out)\"; done";
|
2009-06-30 20:51:01 +02:00
|
|
|
|
2008-07-18 22:11:25 +02:00
|
|
|
meta = {
|
2008-06-19 00:48:54 +02:00
|
|
|
homepage = "http://scons.org/";
|
|
|
|
description = "An improved, cross-platform substitute for Make";
|
2010-08-26 14:24:16 +02:00
|
|
|
license = "MIT";
|
2008-06-19 00:48:54 +02:00
|
|
|
longDescription =
|
|
|
|
'' SCons is an Open Source software construction tool. Think of
|
|
|
|
SCons as an improved, cross-platform substitute for the classic
|
|
|
|
Make utility with integrated functionality similar to
|
|
|
|
autoconf/automake and compiler caches such as ccache. In short,
|
|
|
|
SCons is an easier, more reliable and faster way to build
|
|
|
|
software.
|
|
|
|
'';
|
2010-05-09 18:01:44 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2006-02-02 13:59:41 +01:00
|
|
|
};
|
|
|
|
}
|