My solutions for Advent of Code 2020.
I tried to use Nix to set up local development environments. For each day you can cd
into the respective directory and use nix-shell
to install all the dependencies you need. I ran into some issues with installing Clojure with Nix so this doesn’t apply for the days when I used that language.
Specific commands to run the programs for each day are specified below.
nix-shell --pure --run "swipl day1.pl"
- Clojure:
clojure day2.clj
- Babashka:
bb day2.clj
nix-shell --pure --run "elixir day3.exs"
nix-shell --pure --run "elixir day4.exs"
nix-shell --pure --run "swipl day5.pl"
nix-shell --pure --run "elixir day6.exs"
nix-shell --pure --run "python3 parse.py && swipl day7.pl"
nix-shell --pure --run "cargo run"
nix-shell --pure --run "swipl day9.pl"
nix-shell --pure --run "swipl day10.pl"