From 02795f6c6490af405a805686690d070ffbf5f6c7 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 27 May 2023 01:00:20 +0300 Subject: [PATCH] silicon: migrate to bindgenHook --- pkgs/tools/misc/silicon/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/silicon/default.nix b/pkgs/tools/misc/silicon/default.nix index ba300f43d0f4..eadfd64b60f0 100644 --- a/pkgs/tools/misc/silicon/default.nix +++ b/pkgs/tools/misc/silicon/default.nix @@ -5,7 +5,6 @@ , fetchpatch , pkg-config , cmake -, llvmPackages , expat , freetype , libxcb @@ -45,15 +44,13 @@ rustPlatform.buildRustPackage rec { }; }; - buildInputs = [ llvmPackages.libclang expat freetype fira-code fontconfig harfbuzz ] + buildInputs = [ expat freetype fira-code fontconfig harfbuzz ] ++ lib.optionals stdenv.isLinux [ libxcb ] ++ lib.optionals stdenv.isDarwin [ libiconv AppKit CoreText Security ]; - nativeBuildInputs = [ cmake pkg-config ] + nativeBuildInputs = [ cmake pkg-config rustPlatform.bindgenHook ] ++ lib.optionals stdenv.isLinux [ python3 ]; - LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; - preCheck = '' export HOME=$TMPDIR '';