1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat(rust): use universal target dir

This commit is contained in:
Ryan Cao 2024-01-11 17:47:16 +08:00
parent 2769f06537
commit 3fc6390a87
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E

View file

@ -1,8 +1,11 @@
{pkgs, ...}: let
# inherit (pkgs) lib;
{
pkgs,
config,
...
}: let
toml = pkgs.formats.toml {};
in {
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
# build.rustc-wrapper = lib.getExe' pkgs.sccache "sccache";
build.target-dir = "${config.home.homeDirectory}/.cargo/target";
};
}