diff options
author | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2006-04-26 14:47:16 +0000 |
---|---|---|
committer | Martin Bravenboer <martin.bravenboer@logicblox.com> | 2006-04-26 14:47:16 +0000 |
commit | 626bcbed10c7d82ab5d4c1f77a92319807e63783 (patch) | |
tree | 9b195401a364e5cfeee82d4e63f425a0989907dc /pkgs/development/interpreters/spidermonkey | |
parent | 825adc16b6e280f1917e5fc3f004329f15408452 (diff) |
Added spidermonkey.
svn path=/nixpkgs/trunk/; revision=5227
Diffstat (limited to 'pkgs/development/interpreters/spidermonkey')
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/builder.sh | 31 | ||||
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/default.nix | 11 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/builder.sh b/pkgs/development/interpreters/spidermonkey/builder.sh new file mode 100644 index 0000000000000..b0cfe6c9ed624 --- /dev/null +++ b/pkgs/development/interpreters/spidermonkey/builder.sh @@ -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 diff --git a/pkgs/development/interpreters/spidermonkey/default.nix b/pkgs/development/interpreters/spidermonkey/default.nix new file mode 100644 index 0000000000000..769d384c99816 --- /dev/null +++ b/pkgs/development/interpreters/spidermonkey/default.nix @@ -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; +} |