silicon: migrate to bindgenHook
This commit is contained in:
parent
c9bcecf0ab
commit
02795f6c64
1 changed files with 2 additions and 5 deletions
|
@ -5,7 +5,6 @@
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, cmake
|
, cmake
|
||||||
, llvmPackages
|
|
||||||
, expat
|
, expat
|
||||||
, freetype
|
, freetype
|
||||||
, libxcb
|
, 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.isLinux [ libxcb ]
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv AppKit CoreText Security ];
|
++ lib.optionals stdenv.isDarwin [ libiconv AppKit CoreText Security ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ]
|
nativeBuildInputs = [ cmake pkg-config rustPlatform.bindgenHook ]
|
||||||
++ lib.optionals stdenv.isLinux [ python3 ];
|
++ lib.optionals stdenv.isLinux [ python3 ];
|
||||||
|
|
||||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue