mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
piston nix pkg for lua
This commit is contained in:
parent
54a4acd5da
commit
27e59923f2
7 changed files with 27 additions and 28 deletions
|
@ -34,4 +34,5 @@ args: {
|
|||
"nasm" = import ./nasm.nix args;
|
||||
"nasm-nasm64" = import ./nasm-nasm64.nix args;
|
||||
"mono-csharp" = import ./mono-csharp.nix args;
|
||||
"lua" = import ./lua.nix args;
|
||||
}
|
||||
|
|
26
runtimes/lua.nix
Normal file
26
runtimes/lua.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{pkgs, piston, ...}:
|
||||
let
|
||||
pkg = pkgs.lua5_4; # latest lua as of now
|
||||
in piston.mkRuntime {
|
||||
language = "lua";
|
||||
version = pkg.version;
|
||||
aliases = [];
|
||||
|
||||
run = ''
|
||||
${pkg}/bin/lua "$@"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.lua" = ''
|
||||
print("OK")
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.lua";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue