piston/runtimes/yabasic.nix

29 lines
502 B
Nix
Raw Permalink Normal View History

{pkgs, piston, ...}:
let
pkg = pkgs.yabasic;
in piston.mkRuntime {
language = "yabasic";
version = pkg.version;
aliases = [
"basic"
];
run = ''
${pkg}/bin/yabasic "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.bas" = ''
PRINT "OK"
'';
};
args = [];
stdin = "";
packages = [];
main = "test.bas";
})
];
}