2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pipewire
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "wayland-pipewire-idle-inhibit";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.5.2";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rafaelrc7";
|
|
|
|
repo = "wayland-pipewire-idle-inhibit";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-8oVTexYGQWyaAVJedrp4kIQ7VjBR47l65eByZr7oghg=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-6MzV2JOVFezD9fVDbzZ6Zm9RWOexh5LPk6AWOleOc2Q=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pipewire
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Suspends automatic idling of Wayland compositors when media is being played through Pipewire";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/rafaelrc7/wayland-pipewire-idle-inhibit/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ rafameou ];
|
|
|
|
mainProgram = "wayland-pipewire-idle-inhibit";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|