add piston nix pkg for jelly

This commit is contained in:
Dan Vargas 2022-02-11 10:18:22 -07:00
parent 25ae43df69
commit c3d1ece81e
7 changed files with 27 additions and 20 deletions

View File

@ -1,12 +0,0 @@
#!/bin/bash
source ../../python/3.9.1/build.sh
mkdir -p build
git clone -q https://github.com/DennisMitchell/jellylanguage.git build/jelly
cd build/jelly
../../bin/python3.9 setup.py install --optimize=1
cd ../../
rm -rf build

View File

@ -1 +0,0 @@
export PATH=$PWD/bin:$PATH

View File

@ -1,5 +0,0 @@
{
"language": "jelly",
"version": "0.1.31",
"aliases": []
}

View File

@ -1 +0,0 @@
jelly fu "$@"

View File

@ -1 +0,0 @@
“OK”

View File

@ -39,4 +39,5 @@ args: {
"sbcl-lisp" = import ./sbcl-lisp.nix args; "sbcl-lisp" = import ./sbcl-lisp.nix args;
"jvm-kotlin" = import ./jvm-kotlin.nix args; "jvm-kotlin" = import ./jvm-kotlin.nix args;
"julia" = import ./julia.nix args; "julia" = import ./julia.nix args;
"jelly" = import ./jelly.nix args;
} }

26
runtimes/jelly.nix Normal file
View 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";
})
];
}