mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: use sccache for rust
This commit is contained in:
parent
b83a826eff
commit
b98d7efeec
3 changed files with 10 additions and 1 deletions
1
home.nix
1
home.nix
|
|
@ -17,6 +17,7 @@
|
||||||
./programs/helix.nix
|
./programs/helix.nix
|
||||||
./programs/go.nix
|
./programs/go.nix
|
||||||
./programs/exa.nix
|
./programs/exa.nix
|
||||||
|
./programs/rust.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
8
programs/rust.nix
Normal file
8
programs/rust.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{pkgs, ...}: let
|
||||||
|
lib = pkgs.lib;
|
||||||
|
in {
|
||||||
|
home.file.".cargo/config.toml".text = ''
|
||||||
|
[build]
|
||||||
|
rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
rustc
|
rustc
|
||||||
cargo
|
cargo
|
||||||
|
|
||||||
ccache
|
sccache
|
||||||
deno
|
deno
|
||||||
fnm
|
fnm
|
||||||
bun
|
bun
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue