2008-09-01 16:11:09 +01:00
|
|
|
{stdenv, fetchurl, python, makeWrapper}:
|
2006-02-02 12:59:41 +00:00
|
|
|
|
2010-08-26 13:24:16 +01:00
|
|
|
let
|
2010-08-26 14:30:25 +01:00
|
|
|
name = "scons";
|
2014-08-31 14:47:03 +01:00
|
|
|
version = "2.3.3";
|
2010-08-26 13:24:16 +01:00
|
|
|
in
|
2010-08-26 14:30:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-08-26 13:24:16 +01:00
|
|
|
name = "${name}-${version}";
|
2009-06-30 19:51:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-08-26 13:24:16 +01:00
|
|
|
url = "mirror://sourceforge/scons/${name}-${version}.tar.gz";
|
2014-08-31 14:47:03 +01:00
|
|
|
sha256 = "1qn0gk4k796a6vwsq62w80d6w96r9xh6kz7aa14xb6md2884x9v3";
|
2009-06-30 19:51:01 +01:00
|
|
|
};
|
|
|
|
|
2010-12-07 11:41:25 +00:00
|
|
|
buildInputs = [python makeWrapper];
|
|
|
|
|
2010-10-22 20:10:02 +01:00
|
|
|
preConfigure = ''
|
2010-12-06 18:01:28 +00:00
|
|
|
for i in "script/"*; do
|
2010-10-22 20:10:02 +01:00
|
|
|
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
|
|
|
|
done
|
|
|
|
'';
|
2010-12-07 11:41:25 +00: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 19:51:01 +01:00
|
|
|
|
2014-01-20 12:29:28 +00:00
|
|
|
pythonPath = [];
|
|
|
|
|
2008-07-18 21:11:25 +01:00
|
|
|
meta = {
|
2008-06-18 23:48:54 +01:00
|
|
|
homepage = "http://scons.org/";
|
|
|
|
description = "An improved, cross-platform substitute for Make";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2012-03-13 08:29:18 +00: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.
|
2008-06-18 23:48:54 +01:00
|
|
|
'';
|
2010-05-09 17:01:44 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2006-02-02 12:59:41 +00:00
|
|
|
};
|
|
|
|
}
|