diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-08-07 21:44:13 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-08-07 21:44:13 +0000 |
commit | 5792074ddc3be1454bd6637c5246546ec022a586 (patch) | |
tree | 0c9e676edf2d60c9a1140156592327068503d547 /pkgs/development/interpreters/spidermonkey | |
parent | 4ed96dfbc27186ba5cced3a99e25b6867cac5fd0 (diff) |
Add an RC (1.8.0-rc1) of SpiderMonkey by cloning the release expression
svn path=/nixpkgs/trunk/; revision=23030
Diffstat (limited to 'pkgs/development/interpreters/spidermonkey')
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/1.8.0-rc1.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/1.8.0-rc1.nix b/pkgs/development/interpreters/spidermonkey/1.8.0-rc1.nix new file mode 100644 index 0000000000000..eb384b87fe245 --- /dev/null +++ b/pkgs/development/interpreters/spidermonkey/1.8.0-rc1.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, readline }: + +stdenv.mkDerivation rec { + version = "1.8.0-rc1"; + name = "spidermonkey-${version}"; + + src = fetchurl { + url = "http://ftp.mozilla.org/pub/mozilla.org/js/js-${version}.tar.gz"; + sha256 = "374398699ac3fd802d98d642486cf6b0edc082a119c9c9c499945a0bc73e3413"; + }; + + 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"; +} |