1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

wayland-pipewire-idle-inhibit: use rustPlatform.bindgenHook, fix cross compilation

This commit is contained in:
Nick Cao 2024-02-27 13:25:59 -05:00
parent b2467e40a1
commit dfa08b768c
No known key found for this signature in database

View file

@ -1,6 +1,4 @@
{ clang
, lib
, libclang
{ lib
, fetchFromGitHub
, pipewire
, pkg-config
@ -22,8 +20,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-7XuDZ57+F8Ot5oNO9/BXjFljNmoMgNgURfmPEIy2PHo=";
nativeBuildInputs = [
clang
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
@ -32,8 +30,6 @@ rustPlatform.buildRustPackage rec {
wayland-protocols
];
LIBCLANG_PATH = "${libclang.lib}/lib";
meta = with lib; {
description = "Suspends automatic idling of Wayland compositors when media is being played through Pipewire.";
homepage = "https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit/";