From 344c44bf3e68dd5b929dd6731c3a31983fa8f1ca Mon Sep 17 00:00:00 2001 From: tilpner Date: Sun, 19 Aug 2018 20:39:37 +0200 Subject: Add python2 evaluator --- evaluators.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3