Merge pull request #99172 from mkg20001/spidermonkey-38
This commit is contained in:
commit
b3f8d3b80d
@ -4,7 +4,7 @@
|
|||||||
enableGuile ? false, guile ? null
|
enableGuile ? false, guile ? null
|
||||||
, enablePython ? false, python ? null
|
, enablePython ? false, python ? null
|
||||||
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
|
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
|
||||||
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey ? null
|
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_38 ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableGuile -> guile != null;
|
assert enableGuile -> guile != null;
|
||||||
@ -33,9 +33,9 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional enableGuile guile
|
++ stdenv.lib.optional enableGuile guile
|
||||||
++ stdenv.lib.optional enablePython python
|
++ stdenv.lib.optional enablePython python
|
||||||
++ stdenv.lib.optional enablePerl perl
|
++ stdenv.lib.optional enablePerl perl
|
||||||
++ stdenv.lib.optional enableSpidermonkey spidermonkey
|
++ stdenv.lib.optional enableSpidermonkey spidermonkey_38
|
||||||
;
|
;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake gettext pkgconfig ];
|
nativeBuildInputs = [ autoconf automake gettext pkgconfig ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
@ -50,9 +50,9 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ stdenv.lib.optional enableGuile "--with-guile"
|
] ++ stdenv.lib.optional enableGuile "--with-guile"
|
||||||
++ stdenv.lib.optional enablePython "--with-python"
|
++ stdenv.lib.optional enablePython "--with-python"
|
||||||
++ stdenv.lib.optional enablePerl "--with-perl"
|
++ stdenv.lib.optional enablePerl "--with-perl"
|
||||||
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey}"
|
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey_38}"
|
||||||
;
|
;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
patchShebangs ./autogen.sh
|
patchShebangs ./autogen.sh
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, gocr, unrar, rhino, spidermonkey }:
|
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, gocr, unrar, rhino, spidermonkey_38 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
beautifulsoup = pythonPackages.callPackage ./beautifulsoup.nix {
|
beautifulsoup = pythonPackages.callPackage ./beautifulsoup.nix {
|
||||||
@ -30,7 +30,7 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
in [ configParserPatch setupPyPatch ];
|
in [ configParserPatch setupPyPatch ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
unrar rhino spidermonkey gocr pythonPackages.paver
|
unrar rhino spidermonkey_38 gocr pythonPackages.paver
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
@ -67,5 +67,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
maintainers = [ maintainers.abbradar ];
|
maintainers = [ maintainers.abbradar ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
knownVulnerabilities = [ "SpiderMonkey 38 is outdated and contains known security vulnerabilities." ]; # as per https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey }:
|
{ stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_38 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
make PREFIX="$out" install
|
make PREFIX="$out" install
|
||||||
|
|
||||||
for fn in plow{del,down,list,mod,probe,up}; do
|
for fn in plow{del,down,list,mod,probe,up}; do
|
||||||
wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl recode spidermonkey ]}"
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl recode spidermonkey_38 ]}"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, makeWrapper, spidermonkey }:
|
{ stdenv, fetchFromGitHub, makeWrapper, spidermonkey_38 }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "jsawk";
|
pname = "jsawk";
|
||||||
@ -15,7 +15,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp $src/jsawk $out/bin/
|
cp $src/jsawk $out/bin/
|
||||||
wrapProgram $out/bin/jsawk \
|
wrapProgram $out/bin/jsawk \
|
||||||
--prefix PATH : "${spidermonkey}/bin"
|
--prefix PATH : "${spidermonkey_38}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -659,6 +659,7 @@ mapAliases ({
|
|||||||
youtubeDL = youtube-dl; # added 2014-10-26
|
youtubeDL = youtube-dl; # added 2014-10-26
|
||||||
zdfmediathk = mediathekview; # added 2019-01-19
|
zdfmediathk = mediathekview; # added 2019-01-19
|
||||||
gnome_user_docs = gnome-user-docs; # added 2019-11-20
|
gnome_user_docs = gnome-user-docs; # added 2019-11-20
|
||||||
|
spidermonkey = spidermonkey_68; # added 2020-09-30
|
||||||
|
|
||||||
# TODO(ekleog): add ‘wasm’ alias to ‘ocamlPackages.wasm’ after 19.03
|
# TODO(ekleog): add ‘wasm’ alias to ‘ocamlPackages.wasm’ after 19.03
|
||||||
# branch-off
|
# branch-off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user