generated from Periodic/AdventOfCode-Rust
40 lines
694 B
Nix
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
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|