Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vic/aoc-devenv-template
Template for starting Advent Of Code using Nix devenv.
https://github.com/vic/aoc-devenv-template
advent-of-code getting-started nix-flake template
Last synced: 26 days ago
JSON representation
Template for starting Advent Of Code using Nix devenv.
- Host: GitHub
- URL: https://github.com/vic/aoc-devenv-template
- Owner: vic
- Created: 2023-12-01T05:14:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-01T18:12:15.000Z (11 months ago)
- Last Synced: 2024-04-14T15:09:13.595Z (7 months ago)
- Topics: advent-of-code, getting-started, nix-flake, template
- Language: Nix
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template for starting Advent Of Code using Nix devenv.
* [Install Nix](https://github.com/DeterminateSystems/nix-installer)
* Enable the [Languages](https://devenv.sh/languages/#supported-languages) you are using
by editing `flakeModules/default.nix`.You can also add unlisted languages if they package is available at [nixpkgs](https://search.nixos.org/packages).
There's also an example of a custom language derivation (see `flakeModules/flix`).* Enter the environment.
If you have [direnv](https://direnv.net/docs/hook.html) already installed, this repo
includes an `.envrc` file to load the default devenv. Otherwise you might want to run:
`nix develop --impure`.* Use the [aoc-cli](https://github.com/scarvalhojr/aoc-cli/) to retrieve and submit your puzzles.
Login at [adventofcode.com](https://adventofcode.com/) and download the value of your `session` cookie to `~/.adventofcode.session`.
Use `aoc calendar` to confirm you can use the API.
* Start coding a puzzle.
Use `just init ` to create language project for that day puzzle.
e.g. `just init rust 1` will create a rust project under `day1/rust` and provide the puzzle input.* Get fun.
Use `just watch ` to run your project on changes.
* Submit your answer.
Use `aoc submit --day `