convert perl to nix

This commit is contained in:
Dan Vargas 2022-02-06 21:17:38 -07:00
parent 3530a79a57
commit 66af61c2cb
7 changed files with 30 additions and 29 deletions

29
runtimes/perl.nix Normal file
View file

@ -0,0 +1,29 @@
{pkgs, piston, ...}:
let
pkg = pkgs.perl;
in piston.mkRuntime {
language = "perl";
version = pkg.version;
aliases = [
"pl"
];
run = ''
${pkg}/bin/perl "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.pl" = ''
print("OK")
'';
};
args = [];
stdin = "";
packages = [];
main = "test.pl";
})
];
}