add piston nix pkg for emacs

This commit is contained in:
Dan Vargas 2022-02-16 11:15:38 -07:00
parent 2f2bb862e3
commit 961b678948
7 changed files with 31 additions and 38 deletions

30
runtimes/emacs.nix Normal file
View file

@ -0,0 +1,30 @@
{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";
})
];
}