mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
add piston nix pkg for sbcl-lisp
This commit is contained in:
parent
c604863c72
commit
2d7609f5a2
7 changed files with 33 additions and 33 deletions
|
@ -36,4 +36,5 @@ args: {
|
|||
"mono-csharp" = import ./mono-csharp.nix args;
|
||||
"lua" = import ./lua.nix args;
|
||||
"lolcode" = import ./lolcode.nix args;
|
||||
"sbcl-lisp" = import ./sbcl-lisp.nix args;
|
||||
}
|
||||
|
|
32
runtimes/sbcl-lisp.nix
Normal file
32
runtimes/sbcl-lisp.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{pkgs, piston, ...}:
|
||||
let
|
||||
pkg = pkgs.sbcl;
|
||||
in piston.mkRuntime {
|
||||
language = "lisp";
|
||||
version = pkg.version;
|
||||
runtime = "sbcl";
|
||||
|
||||
aliases = [
|
||||
"lisp"
|
||||
"cl"
|
||||
"commonlisp"
|
||||
];
|
||||
|
||||
run = ''
|
||||
${pkg}/bin/sbcl --script "$@"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.cl" = ''
|
||||
(write-line "OK")
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.cl";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue