From 7f156855177800d89073f57a064ab368f78b5584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= Date: Tue, 28 May 2024 19:06:23 +0200 Subject: [PATCH] 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. --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index fb1e420d..3cd44ec8 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,6 @@ treefmt-nix, fenix, crane, - flake-compat, ... }: flake-parts.lib.mkFlake { inherit inputs; } { @@ -163,8 +162,6 @@ config.treefmt.build.devShell ]; - LIBCLANG_PATH = "${pkgs.clang.cc.lib}/lib"; - # here go packages that aren't required for builds but are used for # development, and might need to be version matched with build # dependencies (e.g. clippy or rust-analyzer). @@ -174,6 +171,7 @@ clang-tools clippy rust-analyzer + rustc ]; };