Convert some packages to nix-based

Affected packages:
- crystal
- dart
- dash
- deno
- elixir
- erlang
- gawk
This commit is contained in:
Thomas Hobson 2022-01-31 18:02:35 +13:00
parent ddab59ccdd
commit af5036d82c
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
60 changed files with 224 additions and 309 deletions

28
runtimes/erlang.nix Normal file
View 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").
'';
};
})
];
}