mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-16 00:26:27 +02:00
add piston nix pkg for jelly
This commit is contained in:
parent
25ae43df69
commit
c3d1ece81e
7 changed files with 27 additions and 20 deletions
26
runtimes/jelly.nix
Normal file
26
runtimes/jelly.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{pkgs, piston, ...}:
|
||||
let
|
||||
pkg = pkgs.jelly;
|
||||
in piston.mkRuntime {
|
||||
language = "jelly";
|
||||
version = pkg.version;
|
||||
aliases = [];
|
||||
|
||||
run = ''
|
||||
${pkg}/bin/jelly fu "$@"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.jelly" = ''
|
||||
“OK”
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.jelly";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue