Added spidermonkey.

svn path=/nixpkgs/trunk/; revision=5227
This commit is contained in:
Martin Bravenboer 2006-04-26 14:47:16 +00:00
parent 825adc16b6
commit 626bcbed10
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,31 @@
source $stdenv/setup
set -e
set -x
tar zxf $src
cd js/src
# Extend Makefile to dump some of its variables we want to know.
cat >> Makefile.ref <<EOF
printlibraries :
@echo \$(LIBRARY) \$(SHARED_LIBRARY) > LIBRARIES
printprograms :
@echo \$(PROGRAM) > PROGRAMS
EOF
MAKE="make -f Makefile.ref"
$MAKE printlibraries
$MAKE printprograms
$MAKE
ensureDir $out
ensureDir $out/bin
ensureDir $out/lib
# Install the binaries that have been created.
install $(cat PROGRAMS) $out/bin
install $(cat LIBRARIES) $out/lib

View file

@ -0,0 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "spidermonkey-1.5";
src = fetchurl {
url = http://ftp.uni-erlangen.de/pub/mozilla.org/js/js-1.5.tar.gz;
md5 = "863bb6462f4ce535399a7c6276ae6776";
};
builder = ./builder.sh;
}

View file

@ -850,6 +850,10 @@ rec {
inherit fetchurl stdenv;
};
spidermonkey = (import ../development/interpreters/spidermonkey) {
inherit fetchurl stdenv;
};
lua4 = (import ../development/interpreters/lua-4) {
inherit fetchurl stdenv;
};