piston/runtimes/python2.nix

28 lines
421 B
Nix
Raw Normal View History

{pkgs, piston, ...}:
let
pkg = pkgs.python2;
in piston.mkRuntime {
language = "python2";
version = pkg.version;
aliases = [
"py2"
2022-06-05 11:39:34 +02:00
"python"
"py"
];
run = ''
${pkg}/bin/python2 "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.py" = ''
print "OK"
'';
};
})
];
2022-06-05 11:39:34 +02:00
}