26 lines
585 B
Nix
26 lines
585 B
Nix
{ ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, self', ... }:
|
|
{
|
|
# An example devshell with some Rust and Nix tools
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
bacon
|
|
cargo
|
|
rust-analyzer
|
|
rustc
|
|
rustfmt
|
|
clippy
|
|
glibc
|
|
sea-orm-cli
|
|
nixfmt
|
|
nil
|
|
alejandra
|
|
self'.packages.boilerplate
|
|
];
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
};
|
|
};
|
|
}
|