feat(tools): Add auto-dispatch for Advent of Code solutions

This commit is contained in:
Vincent Ambo 2019-12-09 12:27:07 +00:00
parent 9fb24840ab
commit ded10fbd83
3 changed files with 5 additions and 1 deletions

View file

@ -14,7 +14,7 @@ let
solutions = map (f: let day = getDay f; in {
name = day;
value = pkgs.writeElispBin {
name = "solution-${day}";
name = "aoc2019";
deps = p: with p; [ dash s ht ];
src = ./. + ("/" + f);
};

View file

@ -25,6 +25,9 @@ case "${TARGET_TOOL}" in
pass)
attr="tools.kms_pass"
;;
aoc2019)
attr="tools.aoc2019.${1}"
;;
*)
echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
exit 1

1
tools/bin/aoc2019 Symbolic link
View file

@ -0,0 +1 @@
__dispatch.sh