forked from mirrors/nixpkgs
Added spidermonkey.
svn path=/nixpkgs/trunk/; revision=5227
This commit is contained in:
parent
825adc16b6
commit
626bcbed10
31
pkgs/development/interpreters/spidermonkey/builder.sh
Normal file
31
pkgs/development/interpreters/spidermonkey/builder.sh
Normal 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
|
11
pkgs/development/interpreters/spidermonkey/default.nix
Normal file
11
pkgs/development/interpreters/spidermonkey/default.nix
Normal 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;
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue