mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-15 16:16:28 +02:00
add piston nix pkg for emacs
This commit is contained in:
parent
2f2bb862e3
commit
961b678948
7 changed files with 31 additions and 38 deletions
30
runtimes/emacs.nix
Normal file
30
runtimes/emacs.nix
Normal 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";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue