piston/runtimes/sbcl-lisp.nix

32 lines
563 B
Nix
Raw 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 = [
"lisp"
"cl"
"commonlisp"
];
run = ''
${pkg}/bin/sbcl --script "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.cl" = ''
(write-line "OK")
'';
};
args = [];
stdin = "";
packages = [];
main = "test.cl";
})
];
}