aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilpner2018-08-19 20:39:37 +0200
committertilpner2018-08-19 20:39:37 +0200
commit344c44bf3e68dd5b929dd6731c3a31983fa8f1ca (patch)
tree12b9340df1ce4cdc43d217d00241a8a635de4354
parent874864ddda24cdb38a38d62ecf71084cf3047a4d (diff)
downloadqeval-344c44bf3e68dd5b929dd6731c3a31983fa8f1ca.tar.gz
qeval-344c44bf3e68dd5b929dd6731c3a31983fa8f1ca.tar.xz
qeval-344c44bf3e68dd5b929dd6731c3a31983fa8f1ca.zip
Add python2 evaluator
-rw-r--r--evaluators.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/evaluators.nix b/evaluators.nix
index 1d07c28..1e29c33 100644
--- a/evaluators.nix
+++ b/evaluators.nix
@@ -205,6 +205,22 @@ let
testInput = "print(\"success\")";
};
+ python2 = prepareJob {
+ name = "python2";
+ aliases = [ "py2" ];
+ mem = 75;
+ storeDrives.python2 = [ python2 ];
+ preCommand = ''
+ ${python2}/bin/python2 -c "print 42"
+ '';
+
+ command = ''
+ ${python2}/bin/python2 "$1"
+ '';
+
+ testInput = "print \"success\"";
+ };
+
ruby = prepareJob {
name = "ruby";
aliases = [ "rb" ];
@@ -373,7 +389,7 @@ let
listAll = with self; [
ash
sh
- python
+ python python2
ruby
perl
lua