piston/runtimes/php.nix

26 lines
461 B
Nix
Raw Normal View History

2022-02-07 05:13:11 +01:00
{pkgs, piston, ...}:
let
pkg = pkgs.php;
in piston.mkRuntime {
language = "php";
version = pkg.version;
aliases = [];
run = ''
${pkg}/bin/php "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.php" = ''
OK
'';
};
args = [];
stdin = "";
packages = [];
main = "test.php";
})
];
}