2021 Advent of Code
Find a file
2021-12-01 03:03:04 +00:00
code first commit 2021-12-01 02:56:43 +00:00
nix cleanup 2021-12-01 03:03:04 +00:00
.gitignore first commit 2021-12-01 02:56:43 +00:00
flake.lock first commit 2021-12-01 02:56:43 +00:00
flake.nix cleanup 2021-12-01 03:03:04 +00:00
README.md first commit 2021-12-01 02:56:43 +00:00

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