2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, readline }:
|
2006-04-26 14:47:16 +00:00
|
|
|
|
2007-11-11 16:12:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "spidermonkey-1.7";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2006-04-26 14:47:16 +00:00
|
|
|
src = fetchurl {
|
2007-11-11 16:12:33 +00:00
|
|
|
url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz;
|
2010-07-28 11:55:54 +00:00
|
|
|
sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4";
|
2006-04-26 14:47:16 +00:00
|
|
|
};
|
|
|
|
|
2007-11-11 16:12:33 +00:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/src";
|
|
|
|
|
|
|
|
makefileExtra = ./Makefile.extra;
|
|
|
|
makefile = "Makefile.ref";
|
2010-07-28 11:55:54 +00:00
|
|
|
|
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
cat ${makefileExtra} >> ${makefile}
|
|
|
|
sed -e 's/ -ltermcap/ -lncurses/' -i ${makefile}
|
|
|
|
'';
|
2007-11-11 16:12:33 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
makeFlags = "-f ${makefile} JS_DIST=\${out} BUILD_OPT=1 JS_READLINE=1";
|
2006-04-26 14:47:16 +00:00
|
|
|
}
|