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

30
runtimes/elixir.nix Normal file
View file

@ -0,0 +1,30 @@
{pkgs, piston, ...}:
let
pkg = pkgs.elixir;
in piston.mkRuntime {
language = "elixir";
version = pkg.version;
aliases = [
"exs"
];
run = ''
export LC_ALL=en_US.UTF-8
${pkg}/bin/elixir "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.exs" = ''
IO.puts("OK")
'';
};
})
];
limitOverrides = {
"max_file_size" = 100000000; # 100MB
};
}