scx.rustscheds: use rustPlatform.bindgenHook

This commit is contained in:
Nick Cao 2024-11-30 08:43:54 -05:00
parent 52614866fd
commit 682cf788e1
No known key found for this signature in database

View File

@ -25,6 +25,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [
pkg-config
llvmPackages.clang
rustPlatform.bindgenHook
];
buildInputs = [
elfutils
@ -33,7 +34,6 @@ rustPlatform.buildRustPackage {
];
env = {
LIBCLANG_PATH = "${lib.getLib llvmPackages.libclang}/lib";
BPF_CLANG = lib.getExe llvmPackages.clang;
BPF_EXTRA_CFLAGS_PRE_INCL = lib.concatStringsSep " " [
"-I${scx.cscheds.dev}/libbpf/src/usr/include"