nix-config/templates/rust/shell.nix

14 lines
265 B
Nix
Raw Normal View History

2023-09-20 13:09:16 +00:00
{ callPackage, rust-analyzer, rustfmt, clippy }:
let
mainPkg = callPackage ./default.nix { };
in
mainPkg.overrideAttrs (oa: {
nativeBuildInputs = [
# Additional rust tooling
rust-analyzer
rustfmt
clippy
] ++ (oa.nativeBuildInputs or [ ]);
})