1
0
Fork 0
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:
Ryan Cao 2023-08-17 12:12:51 +08:00
parent b83a826eff
commit b98d7efeec
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
3 changed files with 10 additions and 1 deletions

View file

@ -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
View 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"}"
'';
}

View file

@ -16,7 +16,7 @@
rustc rustc
cargo cargo
ccache sccache
deno deno
fnm fnm
bun bun