libkrun: use rustPlatform.bindgenHook

This commit is contained in:
Nick Cao 2024-11-30 08:40:30 -05:00
parent b20782310e
commit c56b374946
No known key found for this signature in database

View File

@ -40,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
llvmPackages.clang
rustPlatform.cargoSetupHook
rustPlatform.bindgenHook
cargo
rustc
] ++ lib.optional (sevVariant || withGpu) pkg-config;
@ -52,8 +53,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional withSound pipewire
++ lib.optional sevVariant openssl;
env.LIBCLANG_PATH = "${lib.getLib llvmPackages.clang-unwrapped}/lib/libclang.so";
makeFlags = [
"PREFIX=${placeholder "out"}"
] ++ lib.optional withGpu "GPU=1"