3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/scons/default.nix
2014-08-03 22:29:41 +04:00

44 lines
1.4 KiB
Nix

{stdenv, fetchurl, python, makeWrapper}:
let
name = "scons";
version = "2.3.2";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl {
url = "mirror://sourceforge/scons/${name}-${version}.tar.gz";
sha256 = "1m29lhwz7p6k4f8wc8qjpwa89058lzq3vrycgxbfc5cmbq6354zr";
};
buildInputs = [python makeWrapper];
preConfigure = ''
for i in "script/"*; do
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
done
'';
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";
pythonPath = [];
meta = {
homepage = "http://scons.org/";
description = "An improved, cross-platform substitute for Make";
license = stdenv.lib.licenses.mit;
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.
'';
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}