nixpkgs/pkgs/development/tools/build-managers/scons/default.nix
Peter Simons bc4f5932ad scons: updated to version 0.95.5 and added selectVersion dispatcher
Scons is not only a tool, it's also a python library. However, the
modules are installed in ~/.nix-profile/lib/scons-${version} -- not in
python's "site-packages" directory -- so python won't find the library
without further help. Maybe there should be a symlink in nix-profile? I
guess there should, but I didn't know how to write that into the
expression.

svn path=/nixpkgs/trunk/; revision=12157
2008-06-18 22:48:54 +00:00

27 lines
838 B
Nix

{stdenv, fetchurl, python, version, versionHash}:
stdenv.mkDerivation {
name = "scons-${version}";
meta =
{
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.
'';
};
src = fetchurl
{
url = "mirror://sourceforge/scons/scons-${version}.tar.gz";
sha256 = "${versionHash}";
};
buildPhase = "true";
installPhase = "python setup.py install --prefix=$out";
buildInputs = [python];
}