1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 16:10:45 +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

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