|
|
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "1n1phk8r3l8icqrrap4czplnylawa0ddc2cc4cgdz46x3lrkybz6"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" "lib" ]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ nspr ]; |
|
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig perl python zip libffi readline ]; |
|
|
|
@ -25,7 +27,10 @@ stdenv.mkDerivation rec { |
|
|
|
|
export LIBXUL_DIST=$out |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
setOutputFlags = false; |
|
|
|
|
configureFlags = [ |
|
|
|
|
"--libdir=$(lib)/lib" |
|
|
|
|
"--includedir=$(dev)/include" |
|
|
|
|
"--enable-threadsafe" |
|
|
|
|
"--with-system-nspr" |
|
|
|
|
"--with-system-ffi" |
|
|
|
@ -40,6 +45,11 @@ stdenv.mkDerivation rec { |
|
|
|
|
doCheck = true; |
|
|
|
|
preCheck = "rm jit-test/tests/sunspider/check-date-format-tofte.js"; # https://bugzil.la/600522 |
|
|
|
|
|
|
|
|
|
postInstall = '' |
|
|
|
|
rm "$lib"/lib/*.a # halve the output size |
|
|
|
|
_moveToOutput "bin/js*-config" "$dev" # break the cycle |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; { |
|
|
|
|
description = "Mozilla's JavaScript engine written in C/C++"; |
|
|
|
|
homepage = https://developer.mozilla.org/en/SpiderMonkey; |
|
|
|
|