Skip to content

Commit

Permalink
Mark day 19 as completed
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Jan 13, 2024
1 parent dda836a commit 626deed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ My solutions to the [Advent of Code 2023](https://adventofcode.com/2023), writte
- [x] Day 16: [Zig](day16/src/day16.zig)
- [x] Day 17: [PHP](day17/src/day17.php)
- [x] Day 18: [C++](day18/src/day18.cpp)
- [ ] Day 19: [Swift](day19/src/day19.swift)
- [x] Day 19: [Swift](day19/src/day19.swift)

## Packaging

The programs are packaged with [Nix](https://nixos.org/), a functional package manager for Linux and macOS that focuses on reproducible builds. This makes it easy to build the programs, both locally and CI, without relying on system packages.

To build one of the days, `cd` into the corresponding directory and build and/or run the Nix flake. For example, to run day 4, use the following commands:
To build one of the days, `cd` into the corresponding directory, `nix-build` the package and run it from the symlinked directory. For example, to build and execute day 4, run:

```sh
cd day04
nix run . resources/input.txt
nix-build && result/bin/day04 resources/input.txt
```

Every day is packaged up to take exactly one command-line argument, the input file, and usually includes the demo input from the exercise too.
Expand Down
3 changes: 2 additions & 1 deletion paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"codemirror": "swift",
"name": "Swift"
},
"path": "day19/src/day19.swift"
"path": "day19/src/day19.swift",
"completed": true
}
]

0 comments on commit 626deed

Please sign in to comment.