From 79b9b9d80ac186b5b3cbde1f95830df862eded24 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 17 Apr 2024 01:57:00 +0200 Subject: nushellPlugins.formats: use rustPlatform.bindgenHook --- pkgs/shells/nushell/plugins/formats.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'pkgs/shells') diff --git a/pkgs/shells/nushell/plugins/formats.nix b/pkgs/shells/nushell/plugins/formats.nix index 24500db008232..d52fb69dcec39 100644 --- a/pkgs/shells/nushell/plugins/formats.nix +++ b/pkgs/shells/nushell/plugins/formats.nix @@ -5,7 +5,6 @@ , pkg-config , IOKit , Foundation -, libclang , nix-update-script }: @@ -14,10 +13,8 @@ rustPlatform.buildRustPackage rec { inherit (nushell) version src; cargoHash = "sha256-mInMs0kAJn3/fgRAG0E8hgvaly2G68kT5O+D83pLq78="; - env = lib.optionalAttrs stdenv.cc.isClang { - LIBCLANG_PATH = "${libclang.lib}/lib"; - }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config ] + ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ]; cargoBuildFlags = [ "--package nu_plugin_formats" ]; -- cgit 1.4.1