1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-05-31 05:58:11 +00:00
ncc/modules/common/rust.nix
2025-05-10 16:25:40 +03:00

34 lines
600 B
Nix

{ config, lib, pkgs, ... }: let
inherit (lib) attrValues makeLibraryPath mkIf;
in {
environment.variables = {
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
LIBRARY_PATH = mkIf config.isDarwin <| makeLibraryPath <| attrValues {
inherit (pkgs)
libiconv
;
};
};
environment.systemPackages = attrValues {
inherit (pkgs)
cargo-deny
cargo-expand
cargo-fuzz
cargo-nextest
evcxr
taplo
;
fenix = pkgs.fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
];
};
}