diff options
author | Vincent Ambo <mail@tazj.in> | 2020-12-06T12·59+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-12-06T13·02+0000 |
commit | a8371b01df1b1d16f682e6685cc62fcba4bc54d2 (patch) | |
tree | 340e713ab7b05d824cbd8ebf5257bba9207a49f6 /users/tazjin | |
parent | 54f143b8f7564ef89b6d1f53d1259cf8fb18e035 (diff) |
refactor(tazjin/aoc2020): Build all solutions in CI r/1986
This changes the structure of the output, too, where all AoC solutions now end up in a big folder with `bin/day$n` executables. Change-Id: I77928f4129489d06779b50059835925652688c9c Reviewed-on: https://cl.tvl.fyi/c/depot/+/2231 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/aoc2020/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/users/tazjin/aoc2020/default.nix b/users/tazjin/aoc2020/default.nix index ebb6e7b0c0da..5989224f8d62 100644 --- a/users/tazjin/aoc2020/default.nix +++ b/users/tazjin/aoc2020/default.nix @@ -11,12 +11,12 @@ let getDay = f: head (matchSolution f); solutionFiles = filter (e: dir."${e}" == "regular" && isSolution e) (attrNames dir); - solutions = map (f: let day = getDay f; in { - name = day; - value = depot.nix.writeElispBin { - name = "aoc2020"; + solutions = map (f: let day = getDay f; in depot.nix.writeElispBin { + name = day; deps = p: with p; [ dash s ht p.f ]; src = ./. + ("/" + f); - }; }) solutionFiles; -in listToAttrs solutions +in depot.third_party.symlinkJoin { + name = "aoc2020"; + paths = solutions; +} |