python312Packages.lottie: 0.7.0 -> 0.7.1 (#361686)
[NixPkgs.git] / pkgs / by-name / wa / wayland-pipewire-idle-inhibit / package.nix
blobac49b80c5833edd94e4a51334c14df69d3740d51
1 { lib
2 , fetchFromGitHub
3 , pipewire
4 , pkg-config
5 , rustPlatform
6 , wayland
7 , wayland-protocols
8 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "wayland-pipewire-idle-inhibit";
11   version = "0.5.2";
13   src = fetchFromGitHub {
14     owner = "rafaelrc7";
15     repo = "wayland-pipewire-idle-inhibit";
16     rev = "v${version}";
17     hash = "sha256-8oVTexYGQWyaAVJedrp4kIQ7VjBR47l65eByZr7oghg=";
18   };
20   cargoHash = "sha256-6MzV2JOVFezD9fVDbzZ6Zm9RWOexh5LPk6AWOleOc2Q=";
22   nativeBuildInputs = [
23     pkg-config
24     rustPlatform.bindgenHook
25   ];
27   buildInputs = [
28     pipewire
29     wayland
30     wayland-protocols
31   ];
33   meta = with lib; {
34     description = "Suspends automatic idling of Wayland compositors when media is being played through Pipewire";
35     homepage = "https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit/";
36     license = licenses.gpl3Only;
37     platforms = platforms.linux;
38     maintainers = with maintainers; [ rafameou ];
39     mainProgram = "wayland-pipewire-idle-inhibit";
40   };