piston/runtimes/j.nix

44 lines
768 B
Nix
Raw Permalink Normal View History

2022-06-02 03:38:18 +02:00
{pkgs, piston, ...}:
let
pkg = pkgs.j;
in piston.mkRuntime {
language = "j";
version = pkg.version;
aliases = [
"ijs"
];
run = ''
${pkg}/bin/jconsole "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.ijs" = ''
echo'OK'
'';
};
args = [];
stdin = "";
packages = [];
main = "test.ijs";
})
(piston.mkTest {
files = {
"test.ijs" = ''
stdout each |. 2}. ARGV
'';
};
args = ["K" "O"];
stdin = "";
packages = [];
main = "test.ijs";
})
];
}