AdventOfCode2025-Rust/flake.nix
2025-12-11 17:45:10 -08:00

40 lines
694 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
utils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShell =
with pkgs;
mkShell {
buildInputs = [
# Rust toolchain
rustc
cargo
# AoC tooling
aoc-cli
# Dev tools
crates-lsp
rust-analyzer
clippy
rustfmt
];
};
}
);
}