diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-17 01:57:00 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-17 01:57:00 +0200 |
commit | 79b9b9d80ac186b5b3cbde1f95830df862eded24 (patch) | |
tree | 4399e47881797aa6e7a781343548cc932e86666c /pkgs/shells/nushell | |
parent | 8ab305986d055767cf5293ce5119839bba489605 (diff) |
nushellPlugins.formats: use rustPlatform.bindgenHook
Diffstat (limited to 'pkgs/shells/nushell')
-rw-r--r-- | pkgs/shells/nushell/plugins/formats.nix | 7 |
1 files changed, 2 insertions, 5 deletions
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" ]; |