diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-08-17 17:58:57 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-09-03 18:28:07 +0800 |
commit | 0ab1e26024712f497ef8f46a38dbc321223847b2 (patch) | |
tree | c0f81f2dcd9fe58543fb0cde7a945ec19eac6a70 /pkgs/development | |
parent | aa8aa7e2ea35ce655297e8322dc82bf77a31d04b (diff) |
spidermonkey_115: init at 115.2.0
Based on https://src.fedoraproject.org/rpms/mozjs115.
* js/src/configure.in is gone.
* build/cargo-linker is ported to python.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/115.nix | 4 | ||||
-rw-r--r-- | pkgs/development/interpreters/spidermonkey/common.nix | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/spidermonkey/115.nix b/pkgs/development/interpreters/spidermonkey/115.nix new file mode 100644 index 000000000000..433a16f5da2e --- /dev/null +++ b/pkgs/development/interpreters/spidermonkey/115.nix @@ -0,0 +1,4 @@ +import ./common.nix { + version = "115.2.0"; + hash = "sha512-3ztO/ZYH6OtJMnF3YMhl6zGsepYkbLQ4UZDDMxbJWV4Hk6HzxF67lnSpuk/OmNg/cbBjvvCe8wfZLRzXjTDYEg=="; +} diff --git a/pkgs/development/interpreters/spidermonkey/common.nix b/pkgs/development/interpreters/spidermonkey/common.nix index 244a699fd54b..5beac058eb90 100644 --- a/pkgs/development/interpreters/spidermonkey/common.nix +++ b/pkgs/development/interpreters/spidermonkey/common.nix @@ -157,10 +157,13 @@ stdenv.mkDerivation (finalAttrs: rec { export AS=$CC export AC_MACRODIR=$PWD/build/autoconf/ + '' + lib.optionalString (lib.versionAtLeast version "91" && lib.versionOlder version "115") '' pushd js/src sh ../../build/autoconf/autoconf.sh --localdir=$PWD configure.in > configure chmod +x configure popd + '' + lib.optionalString (lib.versionAtLeast version "115") '' + patchShebangs build/cargo-linker '' + '' # We can't build in js/src/, so create a build dir mkdir obj @@ -184,6 +187,7 @@ stdenv.mkDerivation (finalAttrs: rec { homepage = "https://spidermonkey.dev/"; license = licenses.mpl20; # TODO: MPL/GPL/LGPL tri-license for 78. maintainers = with maintainers; [ abbradar lostnet catap ]; + broken = stdenv.isDarwin && versionAtLeast version "115"; # Requires SDK 13.3 (see #242666). platforms = platforms.unix; }; }) |