1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00
ncc/modules/common/rust.nix

31 lines
525 B
Nix

{ config, lib, pkgs, ... }: let
inherit (lib) makeLibraryPath mkIf;
in {
environment.variables = {
CARGO_NET_GIT_FETCH_WITH_CLI = "true";
LIBRARY_PATH = mkIf config.isDarwin <| makeLibraryPath [
pkgs.libiconv
];
};
environment.systemPackages = [
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"
])
];
}