summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2022-02-13 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2022-02-22 19:41:31 +0100
commita6898bc1205701671eddfc67f80f643165253e7f (patch)
treead55a5320ea9f048af48413ae81a44b7d29aeb81
parent7e29b55e9d4c09ed7d045bcb2593ed025ad95107 (diff)
downloadnixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar.gz
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar.bz2
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar.lz
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar.xz
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.tar.zst
nixpkgs-a6898bc1205701671eddfc67f80f643165253e7f.zip
ashpd-demo: use rustPlatform.bindgenHook
-rw-r--r--pkgs/development/tools/ashpd-demo/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/tools/ashpd-demo/default.nix b/pkgs/development/tools/ashpd-demo/default.nix
index f6842dacec9..9d873b8461f 100644
--- a/pkgs/development/tools/ashpd-demo/default.nix
+++ b/pkgs/development/tools/ashpd-demo/default.nix
@@ -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;