Commit Graph

43 Commits

Author SHA1 Message Date
whispers
40fa42a4a2 spidermonkey: add update script
partially based on 6f31c25290/pkgs/applications/networking/browsers/firefox/update.nix. tested with 140.13.0.
2026-07-21 11:17:16 -04:00
dish
48ee44aeb7 spidermonkey_115: drop (#536695) 2026-07-18 02:32:03 +00:00
dish
d0e8dd3bda spidermonkey_115: drop
Also removes all conditionals from `common.nix` that checked for version
< 128, which is now our baseline version
2026-07-06 15:29:43 -04:00
Martin Weinelt
3043c255b3 spidermonkey: pin to python 3.13
> AttributeError: module 'ast' has no attribute 'Str'
2026-05-30 03:53:12 +02:00
Stanisław Pitucha
ff37bd99e7 spidermonkey_{115,128,140}: provide sdkroot directly
We don't need xcbuild for discovery.
2026-04-25 21:38:18 +10:00
Leonard-Orlando Jonathan Menzel
43d5b70298 spidermonkey: fix 32bit corss-compiling 2026-02-11 15:30:20 +00:00
Will Young
3f74d0a077 maintainers: drop lostnet 2025-12-24 13:45:10 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Randy Eckenrode
ec30ce8c65 spidermonkey: drop SDK version workaround patch 2025-10-09 18:23:31 -04:00
Bobby Rong
25277ab7d2 spidermonkey_115: mark as broken on darwin again
This still does not build.

> DEBUG: Executing: `/nix/store/k4mvgh65zn6xb4f6zs9kypz4lq8sgmk3-clang-wrapper-19.1.7/bin/clang -isysroot /nix/store/qvbwadc5f7akpzaf3psd41wjl5jq8333-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk -mmacosx-version-min=11.3 -std=gnu99 -fuse-ld=lld -Wl,--version`
> ERROR: Failed to find an adequate linker
2025-08-29 22:41:24 +08:00
Bobby Rong
ca67e46591 spidermonkey_140: make apple-sdk patch unconditional
To prevent rotten patches.
2025-08-29 22:41:24 +08:00
dish
2dfb14a85a spidermonkey_140: relax SDK requirements for darwin
Upstream wants SDK 15.5, we only have 15.2, but that works fine.
2025-08-29 09:36:06 -04:00
dish
0d4577bce4 spidermonkey_91: drop
It has been EOL for several years now, and the last dependant(couchdb3)
no longer requires it as of #436932.

I've also removed all conditionals in the common.nix build file that
were for versions older than 115, since we no longer ship any versions
older than that. I would like to remove 115 and 128 soon as well, since
as of commit, they reach end of life in 3 weeks(in fact, 115 is EOL for
all platforms we support afaik)
2025-08-29 09:36:06 -04:00
Bobby Rong
95928065c3 spidermonkey_140: init at 140.2.0 (#435900) 2025-08-23 19:51:08 +08:00
Bobby Rong
eb72906168 spidermonkey_140: init at 140.2.0 2025-08-22 22:40:17 +08:00
phaer
978931902c maintainers: drop abbradar
Listed as maintainer for ~170 packages but last commit that made it to
master was 6786ceb in February 2022.

Unresponsive on PRs, such as i.e. #411522
2025-08-22 09:49:27 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Adam C. Stephens
3bf5d32898 spidermonkey_91: mark broken on darwin
has been failing to build on darwin since 2024-12
2025-07-18 13:04:25 -04:00
phanirithvij
d75957a3bb treewide: remove rec when using finalAttrs
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2025-06-06 15:19:52 +02:00
Emily
954bb3bb03 treewide: remove references to deprecated darwin.libobjc stub
This was done with booxter’s fantastic [nix-clean-apple_sdk] tool,
simply modified to look for `libobjc` rather than the existing list he
already used in <https://github.com/NixOS/nixpkgs/pull/398707>. Some
manual work was applied, including cleaning up a string interpolation
in the terrifying MacVim derivation, stray comments, empty lists,
function parameters, and `inherit`s, including all of the references in
`all-packages.nix`.

[nix-clean-apple_sdk]: https://github.com/booxter/nix-clean-apple_sdk
2025-04-21 20:41:03 +01:00
Martin Weinelt
7390bc405a spidermonkey: pin icu75 2025-02-13 17:23:01 +01:00
Sandro Jäckel
456cfd0fdb spidermonkey_78: drop 2025-02-03 16:35:08 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Bobby Rong
46cd220898 spidermonkey_128: init at 128.1.0 2024-08-08 23:55:22 +08:00
ghpzin
2fbc05e81b spidermonkey_{91,102}: fix build
- fix previous patch to a more "stable" url
- use python311 for 91 and 102
2024-07-30 19:28:42 +03:00
Alyssa Ross
b33fd42c30 pkgsMusl.spidermonkey: fix build on x86_64-linux
rustc 1.73.0 introduced a new x86_64-unikraft-linux-musl target.  This
triple is a bit of a lie — the kernel in this case is unikraft, which
isn't Linux, it just tries to be compatible with it.  But this
User-Agent-like string of a triple now exists, and with it comes some
fallout.

Spidermonkey asks rustc for the list of supported targets, then picks
the one that best matches the GNU triple it's building for, which in
the native case config.guess will say is x86_64-pc-linux-musl.  Prior
to rustc 1.73.0, all was well, because there was only one x86_64 musl
triple, but now there are two: x86_64-unknown-linux-musl, and
x86_64-unikraft-linux-musl, and neither of those are obviously closer
than the other to x86_64-pc-linux-musl to Spidermonkey's build system.
As a result, it can't decide which target to pass to rustc, and bails
out.

We can fix this by telling Spidermonkey what platform it should be
building for, rather than letting it guess, which previously we did
only when cross compiling.  This approach is already used in the
Firefox derivation (which is why it was not affected by the rustc
update), so it's been well tested already.

Closes: https://github.com/NixOS/nixpkgs/pull/266560
Closes: https://github.com/NixOS/nixpkgs/pull/282923
2024-02-01 15:36:20 +01:00
Morgan Helton
ecbdec62a3 spidermonkey_91: add patch to allow building with python311 2023-10-29 12:40:56 -05:00
Bobby Rong
0ab1e26024 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.
2023-09-03 18:28:07 +08:00
Weijia Wang
11b07d930d firefox, spidermonkey: remove NIX_LDFLAGS
This commit reverts #210859, since aarch64-linux now uses GCC 12 by default.
2023-03-02 08:02:06 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Martin Weinelt
f7eba3716c spidermonkey_102: 102.1.0 -> 102.8.0
https://www.mozilla.org/en-US/security/advisories/mfsa2023-06/#CVE-2023-25735

Fixes: CVE-2023-25735
2023-02-14 19:30:20 +01:00
Weijia Wang
52a28708b8 treewide: mark #201254 2023-01-26 15:11:41 +01:00
Vladimír Čunát
77a214e764 spidermonkey: fixup build on aarch64-linux
All three versions are the same in this respect.
It's the issue with old libgcc_s propagated via our glibc package; e.g.
https://github.com/NixOS/nixpkgs/pull/209113
2023-01-13 10:03:32 +01:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
sg2002
49a6efa32a spidermonkey: fix i686 build 2022-09-25 16:12:45 +03:00
Kirill A. Korinsky
60259663a4 spidermonkey_*: fix build under macOS 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
f6c8d04c78 spidermonkey_*: remove useless dependency 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
cf3859b188 spidermonkey_*: add myself as a maintainer 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
c053cde6be spidermonkey_102: init at 102.1.0 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
457b124ad2 spidermonkey_*: add tests 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
9a99e98ea4 spidermonkey_78: factor out into a common expression 2022-08-10 23:33:20 +02:00
Kirill A. Korinsky
1573bc9229 spidermonkey_91: factor out into a common expression 2022-08-10 23:33:20 +02:00