mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
forth nix package
This commit is contained in:
parent
adf4136c10
commit
600d9c4631
3 changed files with 32 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
30
runtimes/forth.nix
Normal file
30
runtimes/forth.nix
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue