code | ||
nix | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
README.md |
Advent of Code 2021
this flake builds a package containing a program for each problem in this years advent of code.
adding a problem
create a folder in code/src
for the problem, then add an entry with the following format into code/aoc2021.cabal
:
executable aoc2021-XX
main-is: Main.hs
ghc-options: -O2 -Wall
hs-source-dirs: src/XX
build-depends: base
default-language: Haskell2010
building
your choice of:
nix shell git+https://git.p7.co.nz/thornAvery/aoc2021
nix build git+https://git.p7.co.nz/thornAvery/aoc2021
or you can add the overlay defined in the flake