diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2007-11-11 16:12:33 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2007-11-11 16:12:33 +0000 |
commit | b4c26d6ed97995a0fcfbeef76e19479d4d85ced6 (patch) | |
tree | 4a47988d77e03006b24d412c978339eb70f77223 /pkgs/development/interpreters/spidermonkey | |
parent | 6203fa41f7a4914c8c4b1cb85c7858e0e6b67029 (diff) |
Spidermonkey upgrade to 1.7
Nix-expression mostly rewritten May be needed for previously commited elinks update svn path=/nixpkgs/trunk/; revision=9634
Diffstat (limited to 'pkgs/development/interpreters/spidermonkey')
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/default.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/default.nix b/pkgs/development/interpreters/spidermonkey/default.nix index 4053599cc3b94..97b9115b756df 100644 --- a/pkgs/development/interpreters/spidermonkey/default.nix +++ b/pkgs/development/interpreters/spidermonkey/default.nix @@ -1,11 +1,20 @@ -{stdenv, fetchurl}: +args: with args; -stdenv.mkDerivation { - name = "spidermonkey-1.5"; +stdenv.mkDerivation rec { + name = "spidermonkey-1.7"; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/js-1.5.tar.gz; - md5 = "863bb6462f4ce535399a7c6276ae6776"; + url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz; + sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4"; }; - builder = ./builder.sh; + buildInputs = [ readline ]; + + postUnpack = "sourceRoot=\${sourceRoot}/src"; + + makefileExtra = ./Makefile.extra; + makefile = "Makefile.ref"; + patchPhase = "cat ${makefileExtra} >> ${makefile}; + sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile}"; + + makeFlags="-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1"; } |