45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{
|
|
description = "Dev Shell for AdventOfCode by lilith";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
rust-overlay,
|
|
flake-utils,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
overlays = [(import rust-overlay)];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
in {
|
|
devShells.default = with pkgs;
|
|
mkShell {
|
|
buildInputs = [
|
|
openssl
|
|
pkg-config
|
|
cargo-deny
|
|
cargo-edit
|
|
cargo-watch
|
|
rust-analyzer
|
|
(
|
|
rust-bin.selectLatestNightlyWith (toolchain:
|
|
toolchain.default.override {
|
|
extensions = ["rust-src"];
|
|
})
|
|
)
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|