mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
31 lines
536 B
Nix
31 lines
536 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
toml = pkgs.formats.toml {};
|
|
in {
|
|
home.file.".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
|
|
];
|
|
}
|