2008-09-01 17:11:09 +02:00
|
|
|
{stdenv, fetchurl, python, makeWrapper}:
|
2006-02-02 13:59:41 +01:00
|
|
|
|
2008-09-01 17:11:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-06-19 00:48:54 +02:00
|
|
|
name = "scons-${version}";
|
2008-09-01 17:11:09 +02:00
|
|
|
version = "1.0.0";
|
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";
|
|
|
|
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.
|
|
|
|
'';
|
2006-02-02 13:59:41 +01:00
|
|
|
};
|
2008-07-18 22:11:25 +02:00
|
|
|
src = fetchurl {
|
2008-06-19 00:48:54 +02:00
|
|
|
url = "mirror://sourceforge/scons/scons-${version}.tar.gz";
|
2008-09-01 17:11:09 +02:00
|
|
|
sha256 = "13nyy7n0iddr91r136fj15brni8r5f3j6cx57w5aqfvmnb0lv51x";
|
2008-06-19 00:48:54 +02:00
|
|
|
};
|
2008-09-01 17:11:09 +02:00
|
|
|
propagatedBuildInputs = [python makeWrapper];
|
2008-06-24 00:24:12 +02:00
|
|
|
buildPhase = "true";
|
2008-09-01 17:11:09 +02:00
|
|
|
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
|
|
|
|
'';
|
2006-02-02 13:59:41 +01:00
|
|
|
}
|