piston/runtimes/sbcl-lisp.nix

32 lines
563 B
Nix
Raw Permalink Normal View History

2022-02-08 21:32:54 +01:00
{pkgs, piston, ...}:
let
pkg = pkgs.sbcl;
in piston.mkRuntime {
language = "lisp";
version = pkg.version;
runtime = "sbcl";
aliases = [
2022-02-11 17:30:54 +01:00
"sbcl"
2022-02-08 21:32:54 +01:00
"cl"
"commonlisp"
];
run = ''
${pkg}/bin/sbcl --script "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.cl" = ''
(write-line "OK")
'';
};
args = [];
stdin = "";
packages = [];
main = "test.cl";
})
];
}