mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
convert perl to nix
This commit is contained in:
parent
3530a79a57
commit
66af61c2cb
7 changed files with 30 additions and 29 deletions
|
@ -27,4 +27,5 @@ args: {
|
|||
"prolog" = import ./prolog.nix args;
|
||||
"ponylang" = import ./ponylang.nix args;
|
||||
"php" = import ./php.nix args;
|
||||
"perl" = import ./perl.nix args;
|
||||
}
|
||||
|
|
29
runtimes/perl.nix
Normal file
29
runtimes/perl.nix
Normal 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";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue