ashpd-demo: use rustPlatform.bindgenHook

This commit is contained in:
Guillaume Girol 2022-02-13 12:00:00 +00:00
parent 7e29b55e9d
commit a6898bc120

View File

@ -48,6 +48,7 @@ stdenv.mkDerivation rec {
rustPlatform.cargoSetupHook
rustPlatform.rust.rustc
wrapGAppsHook4
rustPlatform.bindgenHook
desktop-file-utils
glib # for glib-compile-schemas
];
@ -63,11 +64,6 @@ stdenv.mkDerivation rec {
libshumate
];
# libspa-sys requires this for bindgen
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
# <spa-0.2/spa/utils/defs.h> included by libspa-sys requires <stdbool.h>
BINDGEN_EXTRA_CLANG_ARGS = "-I${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include -I${glibc.dev}/include";
passthru = {
updateScript = nix-update-script {
attrPath = pname;