Unverified Commit dc4e18b8 authored by maxine's avatar maxine Committed by GitHub
Browse files

Merge pull request #290278 from rafameou/add-wayland-pipewire-idle-inhibit

wayland-pipewire-idle-inhibit: init at 0.4.5
parents 2f71af7b b79fd410
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -15814,6 +15814,12 @@
    github = "rafaelrc7";
    githubId = 5376043;
  };
  rafameou = {
    email = "rafaelmazz22@gmail.com";
    name = "Rafael Mazzutti";
    github = "rafameou";
    githubId = 26395874;
  };
  ragge = {
    email = "r.dahlen@gmail.com";
    github = "ragnard";
+46 −0
Original line number Diff line number Diff line
{ clang
, lib
, libclang
, fetchFromGitHub
, pipewire
, pkg-config
, rustPlatform
, wayland
, wayland-protocols
}:
rustPlatform.buildRustPackage rec {
  pname = "wayland-pipewire-idle-inhibit";
  version = "0.4.5";

  src = fetchFromGitHub {
    owner = "rafaelrc7";
    repo = "wayland-pipewire-idle-inhibit";
    rev = "v${version}";
    sha256 = "sha256-VOP1VOeXOyjn+AJfSHzVNT0l+rgm63ev9p4uTfMfYY0=";
  };

  cargoSha256 = "sha256-7XuDZ57+F8Ot5oNO9/BXjFljNmoMgNgURfmPEIy2PHo=";

  nativeBuildInputs = [
    clang
    pkg-config
  ];

  buildInputs = [
    pipewire
    wayland
    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/";
    license = licenses.gpl3Only;
    platforms = platforms.linux;
    maintainers = with maintainers; [ rafameou ];
    mainProgram = "wayland-pipewire-idle-inhibit";
  };
}