feat(tools): Add auto-dispatch for Advent of Code solutions
This commit is contained in:
parent
9fb24840ab
commit
ded10fbd83
3 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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
1
tools/bin/aoc2019
Symbolic link
|
@ -0,0 +1 @@
|
|||
__dispatch.sh
|
Loading…
Reference in a new issue