mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
b4c26d6ed9
Nix-expression mostly rewritten May be needed for previously commited elinks update svn path=/nixpkgs/trunk/; revision=9634
20 lines
558 B
Nix
20 lines
558 B
Nix
args: with args;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "spidermonkey-1.7";
|
|
src = fetchurl {
|
|
url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz;
|
|
sha256 = "12v6v2ccw1y6ng3kny3xw0lfs58d1klylqq707k0x04m707kydj4";
|
|
};
|
|
|
|
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";
|
|
}
|