about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-04-17 01:58:03 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-04-17 01:58:03 +0200
commit045d1840e78b9a478d4ab0125996d8e2b86f07ad (patch)
treefdf63122022ba4699e6c2a6458955dddd8f1c45e /pkgs/shells
parentd32e908b923c96497b091f933aa759080b9ad277 (diff)
nushellPlugins.query: use rustPlatform.bindgenHook
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/nushell/plugins/query.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/shells/nushell/plugins/query.nix b/pkgs/shells/nushell/plugins/query.nix
index 73dc9adaa0f1b..ed1e8c038e9dc 100644
--- a/pkgs/shells/nushell/plugins/query.nix
+++ b/pkgs/shells/nushell/plugins/query.nix
@@ -4,7 +4,6 @@
 , nushell
 , IOKit
 , CoreFoundation
-, libclang
 , nix-update-script
 }:
 
@@ -13,9 +12,7 @@ rustPlatform.buildRustPackage {
   inherit (nushell) version src;
   cargoHash = "sha256-takIDfMriDzZT/9JkqWPis10EaZhfwGpi7EkoOh4+vw=";
 
-  env = lib.optionalAttrs stdenv.cc.isClang {
-    LIBCLANG_PATH = "${libclang.lib}/lib";
-  };
+  nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
   buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
   cargoBuildFlags = [ "--package nu_plugin_query" ];