{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
# For `nix develop`
devShell = pkgs.mkShell rec {
buildInputs = with pkgs; [
cargo
clippy
rust-analyzer
rustc
rustfmt
];
};
});
}