piston nix pkg for lolcode

This commit is contained in:
Dan Vargas 2022-02-07 16:06:37 -07:00
parent 27e59923f2
commit c604863c72
7 changed files with 34 additions and 35 deletions

View file

@ -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
View 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";
})
];
}