Commit graph

67 commits

Author SHA1 Message Date
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
Artturin ec35f6341b lua-packages: try splicing 2022-08-26 20:04:02 +03:00
Luka Blaskovic ce8dab1b44 luajit: 2.0.5-2021-10-02, 2.1.0-2021-10-27 -> 2.0.5-2022-03-13, 2.1.0-2022-04-05
* switch to SRI hashes
2022-04-13 06:33:05 +00:00
Andreas Rammhold 31e5b8dc21
Remove myself from maintainers
I don't have time and energy to deal with all of this anymore.
2022-01-20 00:24:52 +01:00
Luka Blaskovic 5c411a4995 luajit_2_0: 2.1.0-2021-07-27 -> 2.0.5-2021-10-02 2021-11-07 07:38:22 +00:00
Luka Blaskovic 90a564a133 luajit_2_1: 2.1.0-2021-08-12 -> 2.1.0-2021-10-27 2021-11-07 07:38:21 +00:00
Matthieu Coudron 88842910b5 lua: introduced a lua lib
Goal is to improve separation between packages and utilities.
Can help with autocompletion/navigate nixpkgs faster.
Also it will help standardize how LUA_PATH is exported across packages,
so that one can more easily make lua changes across nixpkgs (for
    instance changing where lua modules are installed).
2021-09-12 03:03:56 +02:00
Luka Blaskovic 13a1ac5421 luajit_2_0: make it unsupported on all aarch64 platform variants 2021-08-26 10:55:08 +00:00
Luka Blaskovic 737e7314bc luajit_2_1: 2.1.0-2021-06-25 -> 2.1.0-2021-08-12 2021-08-26 09:15:33 +00:00
Luka Blaskovic d1d5367da7 luajit_2_0: 2.1.0-2021-06-08 -> 2.1.0-2021-07-27 2021-08-26 09:15:33 +00:00
Luka Blaskovic 9634784777 luajit: disable unwind external on aarch64-darwin
see: https://github.com/LuaJIT/LuaJIT/issues/698
2021-08-26 09:15:32 +00:00
Luka Blaskovic a15ee4845b luajit: format with nixpkgs-fmt 2021-08-25 10:35:49 +00:00
Luka Blaskovic d5fe0d2b6e Revert "luajit_openresty: init"
This reverts commit 0b467dfa95.
2021-08-25 10:33:56 +00:00
Gregory Anders 0b467dfa95 luajit_openresty: init 2021-08-19 05:52:24 -06:00
Roman Volosatovs 7992d315de
luajit_2_1: 2.1.0-2021-05-29 -> 2.1.0-2021-06-25 2021-07-07 16:26:09 +02:00
Roman Volosatovs 1775ee342a
luajit_2_0: 2.1.0-2021-05-29 -> 2.1.0-2021-06-08 2021-07-07 16:26:08 +02:00
Luka Blaskovic b9bf83bc5a luajit_2_0: 2.1.0-2021-05-17 -> 2.1.0-2021-05-29 2021-05-30 16:02:20 +00:00
Luka Blaskovic 20db1f287f luajit_2_1: 2.1.0-2021-05-22 -> 2.1.0-2021-05-29 2021-05-30 16:02:20 +00:00
Luka Blaskovic e7a2af956a luajit_2_1: 2.1.0-2020-12-28 -> 2.1.0-2021-05-22
Changes since last update:
65378759f3...5783ba1bf7
2021-05-23 08:23:04 +00:00
Luka Blaskovic e0b048da92 luajit_2_0: 2.0.5-2020-12-28 -> 2.0.5-2021-05-17
Changes since last update:
56c04accf9...44684fa71d
2021-05-23 08:20:08 +00:00
Ben Siraphob 001c0cbe54 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
Luka Blaskovic 94bd5c24ca luajit_2_1: 2.1.0-2020-09-30 -> 2.1.0-2020-12-28 2021-01-02 11:07:14 +00:00
Luka Blaskovic 39aa3e4ae3 luajit_2_0: 2.0.5-2020-09-27 -> 2.0.5-2020-12-28 2021-01-02 11:07:14 +00:00
Luka Blaskovic 351bf9584e luajit_2_1: 2.1.0-2020-08-27 -> 2.1.0-2020-09-30 2020-10-01 08:22:27 +00:00
Luka Blaskovic 8baffaecac luajit_2_0: 2.0.5-2020-08-09 -> 2.0.5-2020-09-27 2020-10-01 04:40:19 +00:00
Vladimír Čunát 0e58393738
luajit*: update to address CVE-2020-24372
/cc roundup issues: #96821, #96828.

The diff upstream is fairly small, so let me trust Mike Pall on this.
Both versions get a pair of commits that seem to address the CVE
https://github.com/LuaJIT/LuaJIT/issues/603
and 2.1 additionally gets one other small commit.
2020-08-31 16:31:12 +02:00
Luka Blaskovic 3fcd7415a7 luajit_2_0, luajit_2_1: 2.1.0-2020-03-20 -> 2.1.0-2020-08-05 2020-08-06 13:37:14 +00:00
Luka Blaskovic b67cbe5a2d luajit_2_0, luajit_2_1: bump to 2020-03-20, GC64 mode switch 2020-04-27 07:42:21 +00:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Alexei Robyn e34db5a568 luajit: Expose build options, enable JIT debug module 2020-02-15 18:40:02 +01:00
Vladimír Čunát 9e0f698a49
luajit_2_0: fix the platforms/extraMeta 2019-10-13 14:07:01 +02:00
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Vladimír Čunát 5ddfa4183a
luajit: fix cross-compilation, partially
Also clean the expression a bit.
2019-02-21 12:16:04 +01:00
Matthieu Coudron c4519cf8a6 lua: add withPackages function (#54460)
* lua: add withPackages function

First step towards more automation similar to the haskell backend.
Follow up of https://github.com/NixOS/nixpkgs/pull/33903
2019-01-30 14:13:15 +00:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Silvan Mosberger 02f11bca60
some overrideDerivation cleanups
These four top-level packages were the only ones that didn't have the
meta.position attribute automagically set. This commit fixes this.
2018-06-14 22:28:55 +02:00
Orivej Desh b00c65103d luajit: symlink missing lua.hpp 2017-11-27 16:14:18 +00:00
Andreas Rammhold 0134ccb4dd
luajit: do not override INSTALL_INC
Overriding INSTALL_INC caused luajit to be installed directly into the
`include/` directory instead of `include/luajit-${version}` as normally
expected. Previously the path indicated in the pkg-config file also did
not match the actual header file location.
2017-10-26 01:09:54 +02:00
Vladimír Čunát 08743fe0a3
luajit: 2.0 actually doesn't support aarch64 at all
I suppose 2.1 with caveats with some pointers is better than nothing.
I'm sorry for the potential confusion.  In particular, the problem
about 64-bit pointers is the same in 2.0 and 2.1, despite the warning
only being shown for 2.1 on the web site.
2017-07-10 14:22:35 +02:00
Vladimír Čunát e08e354e04
luajit: revert to 2.1 on aarch64 for now
https://nix-cache.s3.amazonaws.com/log/irncmyl5d6h21jzg5rm10q8s2sxqirmv-luajit-2.0.5.drv
It's hard to debug for me, without an aarch64 machine.
2017-07-07 18:25:17 +02:00
Vladimír Čunát b8726c346c
luajit: switch to 2.0.5 on aarch64 by default 2017-07-07 10:54:06 +02:00
Vladimír Čunát e36b588f93
luajit: add 2.0 version again
The reason will be apparent from the followup commit.
Also order the phases, quote shell variables, add myself to
maintainers, etc.
2017-07-07 10:54:05 +02:00