build(nix): minor tweaks

- rm unused function argument

- `LIBCLANG_PATH` is superfluous here, this is already handled by
  `rustPlatform.bindgenHook` for us.

- rustc is not directly needed in the `$PATH` for the build but it's
  good to have in the dev shell.
This commit is contained in:
Thomas Mühlbacher 2024-05-28 19:06:23 +02:00
parent b362f12add
commit 7f15685517

View File

@ -35,7 +35,6 @@
treefmt-nix, treefmt-nix,
fenix, fenix,
crane, crane,
flake-compat,
... ...
}: }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
@ -163,8 +162,6 @@
config.treefmt.build.devShell config.treefmt.build.devShell
]; ];
LIBCLANG_PATH = "${pkgs.clang.cc.lib}/lib";
# here go packages that aren't required for builds but are used for # here go packages that aren't required for builds but are used for
# development, and might need to be version matched with build # development, and might need to be version matched with build
# dependencies (e.g. clippy or rust-analyzer). # dependencies (e.g. clippy or rust-analyzer).
@ -174,6 +171,7 @@
clang-tools clang-tools
clippy clippy
rust-analyzer rust-analyzer
rustc
]; ];
}; };