Skip to content

Commit

Permalink
Merge pull request #264204 from devusb/spidermonkey
Browse files Browse the repository at this point in the history
spidermonkey_91: fix build with python311
  • Loading branch information
mweinelt authored Nov 7, 2023
2 parents 03e7a22 + ecbdec6 commit 6f25835
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/interpreters/spidermonkey/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ stdenv.mkDerivation (finalAttrs: rec {
] ++ lib.optionals (lib.versionAtLeast version "91" && stdenv.hostPlatform.system == "i686-linux") [
# Fixes i686 build, https://bugzilla.mozilla.org/show_bug.cgi?id=1729459
./fix-float-i686.patch
] ++ lib.optionals (lib.versionAtLeast version "91" && lib.versionOlder version "102") [
# Fix 91 compatibility with python311
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/mozjs91/raw/rawhide/f/0001-Python-Build-Use-r-instead-of-rU-file-read-modes.patch";
hash = "sha256-WgDIBidB9XNQ/+HacK7jxWnjOF8PEUt5eB0+Aubtl48=";
})
];

nativeBuildInputs = [
Expand Down

0 comments on commit 6f25835

Please sign in to comment.