From 3c614ad92f751161c62c0b49636a779ddf1af3a3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Feb 2006 12:59:41 +0000 Subject: [PATCH] * Added the build manager SCons. svn path=/nixpkgs/trunk/; revision=4673 --- .../tools/build-managers/scons/builder.sh | 13 +++++++++++++ .../tools/build-managers/scons/default.nix | 11 +++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 pkgs/development/tools/build-managers/scons/builder.sh create mode 100644 pkgs/development/tools/build-managers/scons/default.nix diff --git a/pkgs/development/tools/build-managers/scons/builder.sh b/pkgs/development/tools/build-managers/scons/builder.sh new file mode 100644 index 000000000000..a33aa00c137a --- /dev/null +++ b/pkgs/development/tools/build-managers/scons/builder.sh @@ -0,0 +1,13 @@ +source $stdenv/setup + +buildPhase=myBuildPhase +myBuildPhase() { + true +} + +installPhase=myInstallPhase +myInstallPhase() { + python setup.py install --prefix=$out || fail +} + +genericBuild diff --git a/pkgs/development/tools/build-managers/scons/default.nix b/pkgs/development/tools/build-managers/scons/default.nix new file mode 100644 index 000000000000..134c35307b56 --- /dev/null +++ b/pkgs/development/tools/build-managers/scons/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, python}: + +stdenv.mkDerivation { + name = "scons-0.96.1"; + builder = ./builder.sh; + src = fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/scons/scons-0.96.1.tar.gz; + md5 = "45b1c346edd8a0970210aeb1e82557c9"; + }; + buildInputs = [python]; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 5b09d4cebf7a..8b2ef2a7fcfd 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -439,6 +439,10 @@ rec { inherit fetchurl stdenv; }; + scons = (import ../development/tools/build-managers/scons) { + inherit fetchurl stdenv python; + }; + bison = (import ../development/tools/parsing/bison) { inherit fetchurl stdenv; m4 = gnum4;