From 5792074ddc3be1454bd6637c5246546ec022a586 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 7 Aug 2010 21:44:13 +0000 Subject: [PATCH] Add an RC (1.8.0-rc1) of SpiderMonkey by cloning the release expression svn path=/nixpkgs/trunk/; revision=23030 --- .../interpreters/spidermonkey/1.8.0-rc1.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/interpreters/spidermonkey/1.8.0-rc1.nix 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 000000000000..eb384b87fe24 --- /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"; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f973c8d8d8ee..d494e08aded6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2146,6 +2146,7 @@ let scsh = callPackage ../development/interpreters/scsh { }; spidermonkey = callPackage ../development/interpreters/spidermonkey { }; + spidermonkey_1_8_0rc1 = callPackage ../development/interpreters/spidermonkey/1.8.0-rc1.nix { }; sysPerl = callPackage ../development/interpreters/sys-perl { };