piston/runtimes/emacs.nix

30 lines
525 B
Nix
Raw Permalink Normal View History

2022-02-16 19:15:38 +01:00
{pkgs, piston, ...}:
let
pkg = pkgs.emacs-nox;
in piston.mkRuntime {
language = "emacs";
version = pkg.version;
aliases = [
"el"
"elisp"
];
run = ''
${pkg}/bin/emacs -Q --script "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.el" = ''
(princ "OK")
'';
};
args = [];
stdin = "";
packages = [];
main = "test.el";
})
];
}