Move to days directory

This commit is contained in:
zuckerberg 2022-12-06 21:33:10 -07:00
parent 775ac4bbe7
commit 041b57bb08
16 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
with import ../util.nix;
with import ../../util.nix;
let
input = readFile ./input;

View File

@ -1,4 +1,4 @@
with import ../util.nix;
with import ../../util.nix;
let
# read file

View File

@ -1,4 +1,4 @@
with import ../util.nix;
with import ../../util.nix;
let
# read input

View File

@ -1,4 +1,4 @@
with import ../util.nix;
with import ../../util.nix;
let
# read input

View File

@ -1,4 +1,4 @@
with import ../util.nix;
with import ../../util.nix;
let
# read input

View File

@ -1,7 +1,10 @@
#! /bin/sh
for i in {1..5}
days_dir="./days"
days_count=$(find $days_dir -maxdepth 1 -type d -not -path $days_dir | wc -l)
for i in $(seq 1 $days_count);
do
echo "--- Day $i ---"
nix eval -f $i/solution.nix
nix eval -f $days_dir/$i/solution.nix
done