2022-02-06 21:21:40 +01:00
|
|
|
{
|
2022-05-01 10:32:31 +02:00
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
2022-02-06 21:21:40 +01:00
|
|
|
home.sessionVariables = {
|
|
|
|
|
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2022-07-17 11:46:23 +02:00
|
|
|
pkgs.rust-bin.stable.latest.default
|
2022-02-06 21:38:03 +01:00
|
|
|
cargo-edit
|
2022-02-06 21:21:40 +01:00
|
|
|
];
|
2022-07-17 11:46:23 +02:00
|
|
|
|
|
|
|
|
home.file = {
|
2022-08-14 14:52:54 +02:00
|
|
|
".zfunc/_cargo".text = ''
|
|
|
|
|
#compdef cargo
|
2022-09-03 22:08:13 +02:00
|
|
|
if command -v rustc >/dev/null 2>&1; then
|
|
|
|
|
source "$(rustc --print sysroot)"/share/zsh/site-functions/_cargo
|
|
|
|
|
fi
|
2022-08-14 14:52:54 +02:00
|
|
|
'';
|
2022-07-17 11:46:23 +02:00
|
|
|
};
|
2022-02-06 21:21:40 +01:00
|
|
|
}
|