Merge pull request #234308 from wegank/silicon-refactor

silicon: migrate to bindgenHook
This commit is contained in:
Weijia Wang
2023-05-27 01:46:31 +03:00
committed by GitHub
+2 -5
View File
@@ -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
'';