add piston nix pkg for jelly
This commit is contained in:
parent
25ae43df69
commit
c3d1ece81e
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
export PATH=$PWD/bin:$PATH
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"language": "jelly",
|
||||
"version": "0.1.31",
|
||||
"aliases": []
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
jelly fu "$@"
|
|
@ -1 +0,0 @@
|
|||
“OK”
|
|
@ -39,4 +39,5 @@ args: {
|
|||
"sbcl-lisp" = import ./sbcl-lisp.nix args;
|
||||
"jvm-kotlin" = import ./jvm-kotlin.nix args;
|
||||
"julia" = import ./julia.nix args;
|
||||
"jelly" = import ./jelly.nix args;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue