41 lines
872 B
Nix
41 lines
872 B
Nix
{
|
|
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-yMuSb5eQPO/bHv+Bcf/US8LVMbf/G/0MSfiPwBhiPpk=";
|
|
};
|
|
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = [
|
|
rust
|
|
pkgs.cargo-deny
|
|
pkgs.rust-analyzer
|
|
pkgs.probe-rs
|
|
pkgs.flip-link
|
|
pkgs.lldb_18
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|