rest of the split migration
This commit is contained in:
22
modules/dev/rust/common.nix
Normal file
22
modules/dev/rust/common.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
rustc
|
||||
cargo
|
||||
rust-analyzer
|
||||
clippy
|
||||
rustfmt
|
||||
;
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit packages;
|
||||
devShell = pkgs.mkShell {
|
||||
inherit packages;
|
||||
name = "rust-dev-shell";
|
||||
shellHook = ''
|
||||
echo "🦀 Rust dev environment"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user