mirror of
https://github.com/RGBCube/ncc
synced 2026-01-14 09:11:00 +00:00
39 lines
715 B
Nix
39 lines
715 B
Nix
{
|
|
homeModules.rust =
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.strings) makeLibraryPath;
|
|
in
|
|
{
|
|
environment.sessionVariables = {
|
|
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
|
|
|
|
LIBRARY_PATH = mkIf config.nixpkgs.hostPlatform.isDarwin <| makeLibraryPath [ pkgs.libiconv ];
|
|
};
|
|
|
|
packages = [
|
|
pkgs.cargo-deny
|
|
pkgs.cargo-expand
|
|
pkgs.cargo-fuzz
|
|
pkgs.cargo-nextest
|
|
|
|
pkgs.evcxr
|
|
|
|
pkgs.taplo
|
|
|
|
(pkgs.fenix.complete.withComponents [
|
|
"cargo"
|
|
"clippy"
|
|
"rust-src"
|
|
"rustc"
|
|
"rustfmt"
|
|
])
|
|
];
|
|
};
|
|
}
|