piston/runtimes/perl.nix

29 lines
490 B
Nix
Raw Permalink Normal View History

2022-02-07 05:17:38 +01:00
{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";
})
];
}