1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-14 09:11:00 +00:00
ncc/modules/rust.mod.nix
2025-10-23 00:42:00 +03:00

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"
])
];
};
}