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