aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilpner2018-09-05 11:25:23 +0200
committertilpner2018-09-05 11:25:23 +0200
commit89a458db4ad03033bbb139c33e6889020b725107 (patch)
treecb66927a070c7985dc17b993a33614b538bcccef
parent4708069115962e6d151c4a7c48588f8601f0b238 (diff)
downloadqeval-89a458db4ad03033bbb139c33e6889020b725107.tar.gz
qeval-89a458db4ad03033bbb139c33e6889020b725107.tar.xz
qeval-89a458db4ad03033bbb139c33e6889020b725107.zip
Add qalculate evaluator
-rw-r--r--evaluators.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/evaluators.nix b/evaluators.nix
index e520ff6..8c286e6 100644
--- a/evaluators.nix
+++ b/evaluators.nix
@@ -388,6 +388,25 @@ let
testInput = "putStrLn \"success\"";
};
+ qalculate = prepareJob {
+ name = "qalculate";
+ mem = 100;
+ aliases = [ "qalc" "calc" "cal" "q" ];
+ storeDrives.qalc = [ libqalculate ];
+
+ preCommand = ''
+ mkdir /.config
+ qalc "42 byte to megabyte"
+ '';
+
+ command = ''
+ qalc -terse -file "$1"
+ '';
+
+ testInput = "\"success\"";
+ testOutput = "\"success\"";
+ };
+
listAll = with self; [
ash
sh