diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-02-13 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2022-02-22 19:41:32 +0100 |
commit | 6d900390cad16324e46458e5c4d41eaf8892fa02 (patch) | |
tree | 4930ec84c87f98e38404783eb447f6bddbe65226 /pkgs/tools/wayland/wluma | |
parent | f3027942a4fbc43df98f73aa3616cfa061502af8 (diff) |
wluma: use rustPlatform.bindgenHook
Diffstat (limited to 'pkgs/tools/wayland/wluma')
-rw-r--r-- | pkgs/tools/wayland/wluma/default.nix | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/pkgs/tools/wayland/wluma/default.nix b/pkgs/tools/wayland/wluma/default.nix index fd4db1a934ab2..555e40384cefc 100644 --- a/pkgs/tools/wayland/wluma/default.nix +++ b/pkgs/tools/wayland/wluma/default.nix @@ -24,25 +24,14 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ makeWrapper pkg-config + rustPlatform.bindgenHook ]; buildInputs = [ udev - v4l-utils.lib + v4l-utils ]; - LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib"; - - # Works around the issue with rust-bindgen and the Nix gcc wrapper: - # https://hoverbear.org/blog/rust-bindgen-in-nix/ - preBuild = '' - export BINDGEN_EXTRA_CLANG_ARGS="$(< ${stdenv.cc}/nix-support/libc-cflags) \ - $(< ${stdenv.cc}/nix-support/cc-cflags) \ - -isystem ${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion llvmPackages.clang}/include \ - -idirafter ${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.config}/${lib.getVersion stdenv.cc.cc}/include \ - -idirafter ${v4l-utils.dev}/include" - ''; - postInstall = '' wrapProgram $out/bin/wluma \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ vulkan-loader ]}" |