mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
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
This commit is contained in:
parent
48864eb8a2
commit
bc4f5932ad
9
pkgs/development/tools/build-managers/scons/0.96.1.nix
Normal file
9
pkgs/development/tools/build-managers/scons/0.96.1.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{stdenv, fetchurl, python, version ? "0.96.1"}:
|
||||
|
||||
assert version == "0.96.1";
|
||||
|
||||
import ./default.nix
|
||||
{
|
||||
inherit stdenv fetchurl python version;
|
||||
versionHash = "0z8cimrb10pj10zx9hv8xdqa1dpwjj61yhf3l26ifw323in1isk7";
|
||||
}
|
9
pkgs/development/tools/build-managers/scons/0.98.5.nix
Normal file
9
pkgs/development/tools/build-managers/scons/0.98.5.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{stdenv, fetchurl, python, version ? "0.98.5"}:
|
||||
|
||||
assert version == "0.98.5";
|
||||
|
||||
import ./default.nix
|
||||
{
|
||||
inherit stdenv fetchurl python version;
|
||||
versionHash = "0xya9pkrwkdg1z2671slhl5nr5jf0pq46cr9ak7dxc8b0wazsh6j";
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
buildPhase() {
|
||||
true
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
python setup.py install --prefix=$out
|
||||
}
|
||||
|
||||
genericBuild
|
@ -1,11 +1,26 @@
|
||||
{stdenv, fetchurl, python}:
|
||||
{stdenv, fetchurl, python, version, versionHash}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "scons-0.96.1";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/scons/scons-0.96.1.tar.gz;
|
||||
md5 = "45b1c346edd8a0970210aeb1e82557c9";
|
||||
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];
|
||||
}
|
||||
|
@ -2190,7 +2190,7 @@ let pkgs = rec {
|
||||
inherit fetchurl stdenv unzip;
|
||||
};
|
||||
|
||||
scons = import ../development/tools/build-managers/scons {
|
||||
scons = selectVersion ../development/tools/build-managers/scons "0.98.5" {
|
||||
inherit fetchurl stdenv python;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user