Merge pull request #290278 from rafameou/add-wayland-pipewire-idle-inhibit
wayland-pipewire-idle-inhibit: init at 0.4.5
This commit is contained in:
commit
dc4e18b877
2 changed files with 52 additions and 0 deletions
|
@ -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
pkgs/by-name/wa/wayland-pipewire-idle-inhibit/package.nix
Normal file
46
pkgs/by-name/wa/wayland-pipewire-idle-inhibit/package.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue