csci5607/flake.nix

29 lines
772 B
Nix
Raw Normal View History

2023-01-21 08:03:11 +00:00
{
inputs = { fenix.url = "github:nix-community/fenix"; };
outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ fenix.overlays.default ];
};
2023-01-21 08:55:19 +00:00
toolchain = pkgs.fenix.stable;
2023-01-21 08:03:11 +00:00
in rec {
devShell = pkgs.mkShell {
2023-01-21 09:03:54 +00:00
packages =
(with pkgs; [ cargo-watch cargo-deny cargo-edit zip unzip ])
2023-01-31 20:41:23 +00:00
++ (with toolchain; [
cargo
rustc
clippy
# Get the nightly version of rustfmt so we can wrap comments
pkgs.fenix.default.rustfmt
]);
2023-01-21 08:03:11 +00:00
CARGO_UNSTABLE_SPARSE_REGISTRY = "true";
};
});
}