summaryrefslogtreecommitdiff
path: root/home/ebisu/kansai/development/languages/rust.nix
blob: 516c61e0e6cac0e2853db9c9cf6d7fa2aab80fd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }:
{
  home.packages = with pkgs; [
    cargo-outdated
    cargo-watch
    cargo-make
    cargo-cache
    rustup
    cargo-udeps
    tsutsumi.cargo-clean-all
  ];

  home.file.".local/share/cargo/config.toml".text = with pkgs; ''
    [build]
    rustc-wrapper = "${sccache}/bin/sccache"

    [target.x86_64-unknown-linux-gnu]
    linker = "${clang}/bin/clang"
    rustflags = ["-Clink-args=-fuse-ld=${mold}/bin/mold"]
  '';
}