piston/runtimes/erlang.nix

28 lines
471 B
Nix
Raw Normal View History

{pkgs, piston, ...}:
let
pkg = pkgs.erlang;
in piston.mkRuntime {
language = "erlang";
version = pkg.version;
aliases = [
"erl"
"escript"
];
run = ''
${pkg}/bin/escript "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.erl" = ''
main(_) ->
io:format("OK~n").
'';
};
})
];
}