forth nix package
This commit is contained in:
parent
adf4136c10
commit
600d9c4631
|
@ -330,6 +330,7 @@ Content-Type: application/json
|
|||
`erlang`,
|
||||
`file`,
|
||||
`forte`,
|
||||
`forth`,
|
||||
`fortran`,
|
||||
`freebasic`,
|
||||
`fsharp.net`,
|
||||
|
|
|
@ -64,4 +64,5 @@ args: {
|
|||
"llvm_ir" = import ./llvm_ir.nix args;
|
||||
"mono-basic" = import ./mono-basic.nix args;
|
||||
"j" = import ./j.nix args;
|
||||
"forth" = import ./forth.nix args;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
{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";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue