mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-15 16:16:28 +02:00
Convert some packages to nix-based
Affected packages: - crystal - dart - dash - deno - elixir - erlang - gawk
This commit is contained in:
parent
ddab59ccdd
commit
af5036d82c
60 changed files with 224 additions and 309 deletions
28
runtimes/erlang.nix
Normal file
28
runtimes/erlang.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{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").
|
||||
'';
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue