scx.rustscheds: use rustPlatform.bindgenHook
This commit is contained in:
parent
52614866fd
commit
682cf788e1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user