piston/runtimes/forth.nix

31 lines
519 B
Nix
Raw Permalink Normal View History

2022-06-03 16:17:41 +02:00
{pkgs, piston, ...}:
let
pkg = pkgs.gforth;
in piston.mkRuntime {
language = "forth";
version = pkg.version;
runtime = "forth";
aliases = [
"gforth"
];
run = ''
${pkg}/bin/gforth "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.forth" = ''
.( OK) bye
'';
};
args = [];
stdin = "";
packages = [];
main = "test.forth";
})
];
}