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:
parent
b83a826eff
commit
b98d7efeec
3 changed files with 10 additions and 1 deletions
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"}"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue