micro-rust/flake.nix

41 lines
872 B
Nix
Raw Permalink Normal View History

2024-10-17 10:02:00 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
};
outputs =
{
nixpkgs,
fenix,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
rust =
with fenix.packages.${system};
fromToolchainFile {
file = ./rust-toolchain.toml;
sha256 = "sha256-VZZnlyP69+Y3crrLHQyJirqlHrTtGTsyiSnZB8jEvVo=";
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
rust
pkgs.cargo-deny
pkgs.rust-analyzer
pkgs.probe-rs
pkgs.flip-link
pkgs.lldb_18
];
};
}
);
}