20 lines
588 B
Nix
20 lines
588 B
Nix
{
|
|
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 ];
|
|
};
|
|
|
|
toolchain = pkgs.fenix.default;
|
|
in rec {
|
|
devShell = pkgs.mkShell {
|
|
packages = (with pkgs; [ cargo-watch cargo-deny cargo-edit ])
|
|
++ (with toolchain; [ cargo rustc rustfmt clippy ]);
|
|
CARGO_UNSTABLE_SPARSE_REGISTRY = "true";
|
|
};
|
|
});
|
|
}
|