1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 02:27:44 +00:00

treewide: get rid of attrValues pattern because nixd doesn't support goto def on it

This commit is contained in:
RGBCube 2025-07-22 03:17:23 +03:00
parent 30d4b5e421
commit 372df8b48a
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
11 changed files with 160 additions and 196 deletions

View file

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