mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
feat(rust): use toml generator
This commit is contained in:
parent
a5d31746a9
commit
a387054cfe
1 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
toml = pkgs.formats.toml {};
|
||||||
in {
|
in {
|
||||||
home.file.".cargo/config.toml".text = ''
|
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
|
||||||
[build]
|
build.rustc-wrapper = lib.getExe' pkgs.sccache "sccache";
|
||||||
rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}"
|
};
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue