1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00
flake/home/programs/rust.nix

32 lines
568 B
Nix

{
pkgs,
lib,
config,
...
}: let
toml = pkgs.formats.toml {};
in {
home.file."${config.xdg.dataHome}/cargo/config.toml".source = toml.generate "config.toml" {
build.rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}";
};
home.packages = with pkgs; [
(fenix.combine (
with fenix;
with stable; [
cargo
rustc
rustfmt
clippy
rust-src
targets.wasm32-unknown-unknown.stable.rust-std
]
))
cargo-bloat
cargo-cache
cargo-deny
cargo-expand
cargo-watch
];
}