2019-04-27 13:00:12 +00:00
|
|
|
# similar to interpreters/python/default.nix
|
2022-05-23 08:28:05 +00:00
|
|
|
{ stdenv, lib, callPackage, fetchurl, fetchpatch, makeBinaryWrapper }:
|
2019-04-27 13:00:12 +00:00
|
|
|
|
2021-04-19 11:38:01 +00:00
|
|
|
rec {
|
2020-12-27 11:16:27 +00:00
|
|
|
lua5_4 = callPackage ./interpreter.nix {
|
2021-05-31 17:42:36 +00:00
|
|
|
sourceVersion = { major = "5"; minor = "4"; patch = "3"; };
|
|
|
|
hash = "1yxvjvnbg4nyrdv10bq42gz6dr66pyan28lgzfygqfwy2rv24qgq";
|
2022-05-23 08:28:05 +00:00
|
|
|
makeWrapper = makeBinaryWrapper;
|
2021-05-15 04:57:09 +00:00
|
|
|
|
2022-05-12 14:00:09 +00:00
|
|
|
patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch
|
|
|
|
++ [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2022-28805.patch";
|
|
|
|
url = "https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa.patch";
|
|
|
|
sha256 = "sha256-YTwoolSnRNJIHFPVijSO6ZDw35BG5oWYralZ8qOb9y8=";
|
|
|
|
stripLen = 1;
|
|
|
|
extraPrefix = "src/";
|
|
|
|
excludes = [ "src/testes/*" ];
|
|
|
|
})
|
|
|
|
];
|
2020-12-27 11:16:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lua5_4_compat = lua5_4.override({
|
|
|
|
compat = true;
|
|
|
|
});
|
2019-04-27 13:00:12 +00:00
|
|
|
|
2019-04-27 18:28:54 +00:00
|
|
|
lua5_3 = callPackage ./interpreter.nix {
|
2020-12-29 22:24:20 +00:00
|
|
|
sourceVersion = { major = "5"; minor = "3"; patch = "6"; };
|
|
|
|
hash = "0q3d8qhd7p0b7a4mh9g7fxqksqfs6mr1nav74vq26qvkp2dxcpzw";
|
2022-05-23 08:28:05 +00:00
|
|
|
makeWrapper = makeBinaryWrapper;
|
2020-12-29 22:24:20 +00:00
|
|
|
|
2019-11-21 09:53:10 +00:00
|
|
|
patches =
|
2020-12-29 22:24:20 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ ./5.2.darwin.patch ];
|
2019-04-27 18:28:54 +00:00
|
|
|
};
|
2019-04-27 13:00:12 +00:00
|
|
|
|
|
|
|
lua5_3_compat = lua5_3.override({
|
|
|
|
compat = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
lua5_2 = callPackage ./interpreter.nix {
|
|
|
|
sourceVersion = { major = "5"; minor = "2"; patch = "4"; };
|
|
|
|
hash = "0jwznq0l8qg9wh5grwg07b5cy3lzngvl5m2nl1ikp6vqssmf9qmr";
|
2022-05-23 08:28:05 +00:00
|
|
|
makeWrapper = makeBinaryWrapper;
|
2022-05-17 12:55:20 +00:00
|
|
|
patches = [
|
|
|
|
./CVE-2022-28805.patch
|
|
|
|
] ++ lib.optional stdenv.isDarwin ./5.2.darwin.patch;
|
2019-04-27 13:00:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lua5_2_compat = lua5_2.override({
|
|
|
|
compat = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
lua5_1 = callPackage ./interpreter.nix {
|
|
|
|
sourceVersion = { major = "5"; minor = "1"; patch = "5"; };
|
|
|
|
hash = "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333";
|
2022-05-23 08:28:05 +00:00
|
|
|
makeWrapper = makeBinaryWrapper;
|
2021-04-19 11:38:01 +00:00
|
|
|
patches = (lib.optional stdenv.isDarwin ./5.1.darwin.patch)
|
2019-10-02 20:13:12 +00:00
|
|
|
++ [ ./CVE-2014-5461.patch ];
|
2019-04-27 13:00:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
luajit_2_0 = import ../luajit/2.0.nix {
|
|
|
|
self = luajit_2_0;
|
|
|
|
inherit callPackage lib;
|
|
|
|
};
|
|
|
|
|
|
|
|
luajit_2_1 = import ../luajit/2.1.nix {
|
|
|
|
self = luajit_2_1;
|
2019-06-16 19:59:06 +00:00
|
|
|
inherit callPackage;
|
2019-04-27 13:00:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|