Commit Graph

108 Commits

Author SHA1 Message Date
Vladimír Čunát
d0d46c93b2 luajit_2_1: 2.1.1774638290 -> 2.1.1785577137 (#550756) 2026-08-12 08:00:47 +00:00
Vladimír Čunát
5baff07c87 luajit_2_1: 2.1.1785577137 -> 2.1.1785763465
I saw some fixes for changes done in the parent commit in nixpkgs.
2026-08-12 09:54:05 +02:00
robin
670a1650c2 luajit_2_1: 2.1.1774638290 -> 2.1.1785577137
closes https://github.com/NixOS/nixpkgs/issues/548383

Co-authored-by: june <me@koi.rip>
2026-08-09 13:56:22 +02:00
teto
a00e12bc53 luajit: update deprecated substituteInPlace --replace 2026-07-28 13:35:34 +02:00
Stanislav Asunkin
7d8e96c03a luajit_2_1: 2.1.1741730670 -> 2.1.1774638290 2026-04-17 21:50:04 +03:00
Stanislav Asunkin
e5128054e6 luajit_2_0: 2.0.1741557863 -> 2.0.1774896119 2026-04-17 21:46:18 +03:00
OPNA2608
f15c217e4a luajit_openresty: Remove powerpc64le-linux from badPlatforms
powerpc64 and powerpc64le are supported since at least 2.1-20201001.
powerpc64 ELFv1 (our default ABI target) builds, but suffers from an issue with memory allocations.
2026-03-23 18:33:00 +01:00
OPNA2608
ca9f272bf9 {luajit,luajit_2_0,luajit_openresty}: Add powerpc64-linux to unsupported platforms
Official LuaJIT throws same error on powerpc64 as it does on powerpc64le.
2026-03-23 17:58:24 +01:00
Marcin Serwin
2000ec68c5 maintainers: drop smironov
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-03-04 17:34:27 +01:00
nixpkgs-ci[bot]
dd86763902 Merge master into staging-next 2026-01-12 00:19:46 +00:00
Weijia Wang
f6d4126f3e luajit_openresty: 2.1-20250826 -> 2.1-20251030 (#460543) 2026-01-11 19:57:05 +00:00
Jarrad Hope
d992204d8c luajit: enable MinGW build
LuaJIT's build needs an explicit Windows target when cross compiling to MinGW.

Without this it can emit ELF-specific assembler directives (e.g. .hidden/.type/.size),

which fail with the PE/COFF toolchain.

Also provide an install-time compatibility copy from src/luajit.exe to src/luajit,

since the upstream install rule expects the non-.exe name.
2026-01-02 13:52:36 -05: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
André Schröder
3b224d4b91 luajit_openresty: 2.1-20250826 -> 2.1-20251030 2025-11-11 03:02:11 +01:00
Alex Epelde
1b1060cf05 luajit_openresty: 2.1-20220915 -> 2.1-20250826 2025-10-27 17:24:42 -04:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Weijia Wang
43c1552a56 luajit: add loongarch64-linux to bad platforms 2025-04-28 12:51:11 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Austin Horstman
fec5bb1463 luajit_2_0: 2.0.1713483859 -> 2.0.1741557863 2025-03-17 07:35:07 +01:00
Austin Horstman
a69699effa luajit_2_1: 2.1.1713773202 -> 2.1.1741730670 2025-03-17 07:35:03 +01:00
musjj
629494c10a luajit: add mainProgram 2025-03-16 20:01:18 +01:00
Wolfgang Walther
7fea091aa8 {lua-5,luajit}: fix missing @ lua @ reference in utils.sh 2025-01-26 16:47:16 +01:00
Silvan Mosberger
667d42c00d 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 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +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
Philip Taron
f8967b46f6 luajit: remove with lib statement 2024-08-18 06:31:15 -07:00
Philip Taron
ce3cb3730a luajit_2_0: remove with lib statement 2024-08-18 06:31:15 -07:00
Matthieu Coudron
c7e5be2cde Merge pull request #319325 from teto/teto/neovim-wrap-lua-deps
neovim: take into account plugin dependencies
2024-06-16 18:01:39 +02:00
Matthieu C.
665f3f694b lua: take into propagated-build-inputs when building LUA_PATH
so far we ignored propagated-build-inputs
2024-06-12 15:31:04 +02:00
Stanislav Asunkin
4257438318 luajit_2_1: 2.1.1693350652 -> 2.1.1713773202 2024-05-19 21:45:33 +03:00
Stanislav Asunkin
3e05406f80 luajit_2_0: 2.0.1693340858 -> 2.0.1713483859 2024-05-19 21:45:13 +03:00
Matthieu C.
6427d04c23 lua:: reworked setup-hook to source utils.sh
which contains lua shell utilities that can be reused during the
creation of an environment.
Makes sense because the generation of LUA_PATH is a bit different than
other ecosystems.
2024-05-01 00:18:44 +02:00
Matthieu Coudron
640cdcb814 lua: smarter/more correct patching
In order to have the 'reset' LUA_PATH (aka `;;`) work, and for purity
reasons(removing /usr paths) we(I) decided to patch the lua interpreters default LUA_PATH.
Turns out the interpreters have different defaults and the patch was too
coarse.
There is smarter patching that can be done via LUA_ROOT.

Also luajit doesn't need patching at all since LUA_ROOT is set via the
build system.
2024-03-16 14:37:09 +01:00
Matthieu Coudron
79245fc3e7 lua: use finalAttrs for interpreters (#264381) 2023-11-23 10:19:14 +01:00
Luka Blaskovic
01901b6df5 luajit: add optional arg enableRegisterAllocationRandomization
https://github.com/LuaJIT/LuaJIT/issues/1062#issuecomment-1698272269
2023-09-04 08:19:06 +00:00
Luka Blaskovic
64566a5234 luajit_2_0: 2.0.5-2022-09-13 -> 2.0.1693340858 2023-09-04 06:17:47 +00:00
Luka Blaskovic
3691e28cd9 luajit_2_1: 2.1.0-2022-10-04 -> 2.1.1693350652 2023-09-04 06:17:47 +00:00
Jeremy Parker
69946ea4cf luajit: set BUILDMODE flag for static builds 2023-07-09 17:19:27 +10:00
Felix Buehler
6672dde558 treewide: use optionalAttrs instead of 'else {}' 2023-06-25 11:01:34 -03: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
Karel Kočí
af2839518e luajit: fix cross build for 32 bit architectures
The 32bit compiler has to be used when building on 64bit system.
2023-01-30 09:54:34 +01:00
Adam Joseph
c031cc5bf1 luajit: add powerpc64le-linux to badPlatforms 2023-01-06 16:03:23 +01:00
Arnout Engelen
af0b453724 Merge pull request #208103 from raboof/neovim-reproducible
neovim: make the build reproducible
2023-01-05 13:17:38 +01:00
Arnout Engelen
90c4a2ebc3 neovim: make the build reproducible
This introduces a patch that improves binary reproducibility since changes in
ordering of the generated code indeed cause changes in the compiled code.

Additionally, since neovim embeds luajit-compiled bytecode into the nvim binary,
we are impacted by https://github.com/LuaJIT/LuaJIT/issues/626 . It is possible
to switch to lua 5.1, but that'd be a regression (luajit has much better
performance and some plugins depend on it, like for example Noice and Lazy).
Disabling `COMPILE_LUA` at build time would cause a runtime penalty each time
neovim starts. Instead, we run luagit with those security settings disabled for
the build-time code generation.

(Note to self: for a minimized testcase this seemed to help at
975ec13f5d5aefcac1dbb15fa867e660e07c93a1 but no longer at
03080b795aa3496ed62d4a0697c9f4767e7ca7e5 of luajit, which is surprising since
that commit doesn't look super relevant. _Also_ surprisingly it does seem to
work in the context of the neovim code generation, though, so that might be
good enough...)

Also, some of the code generation (using mpack and tables) still relies on
stable table ordering. This should eventually be fixed, but as a workaround
we use the luajit-with-stable-string-ids for those generators as well.

Fixes #207841
2023-01-01 15:50:12 +01:00
Sandro Jäckel
56acc4566e luajit_openresty: init at 2.1-20220915 2022-12-26 02:57:06 +01:00
Sandro Jäckel
b374880027 interpreters/lua: replace sourceVersion with lib.versions 2022-12-22 05:14:31 +01:00
Jörg Thalheim
2a694d7ba2 luajit: mark as broken on riscv64 2022-11-20 13:51:41 +01:00
Luka Blaskovic
ac56a47df4 luajit_2_1: 2.1.0-2022-04-05 -> 2.1.0-2022-10-04 2022-10-08 05:45:16 +00:00
Luka Blaskovic
49b4e3ad51 luajit_2_0: 2.0.5-2022-03-13 -> 2.0.5-2022-09-13 2022-10-08 05:43:19 +00:00
Artturin
39571bd6fa luaPackages: copy passthruFun from python 2022-08-26 20:55:30 +03:00