mirror of
https://github.com/RGBCube/ncc
synced 2025-05-31 05:58:11 +00:00
34 lines
600 B
Nix
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"
|
|
];
|
|
};
|
|
}
|