mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
baa9150130
- The flag "--mandir" has no effect with setup.py. Instead, "--install-data" must be used. - Don't generate wrappers for trivial symlink aliases in bin. - Prefer symlinks over hard-links. - The dependencies of this expression don't need to be propagated. svn path=/nixpkgs/trunk/; revision=25021
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{stdenv, fetchurl, python, makeWrapper}:
|
|
|
|
let
|
|
name = "scons";
|
|
version = "2.0.1";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "${name}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/scons/${name}-${version}.tar.gz";
|
|
sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a";
|
|
};
|
|
|
|
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";
|
|
|
|
meta = {
|
|
homepage = "http://scons.org/";
|
|
description = "An improved, cross-platform substitute for Make";
|
|
license = "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 ];
|
|
};
|
|
}
|