sway-audio-idle-inhibit: cleanup (#478949)
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
libpulseaudio,
|
||||
meson,
|
||||
ninja,
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
libpulseaudio,
|
||||
systemd,
|
||||
stdenv,
|
||||
systemdMinimal,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sway-audio-idle-inhibit";
|
||||
version = "0.2.0";
|
||||
@@ -15,10 +17,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "ErikReider";
|
||||
repo = "SwayAudioIdleInhibit";
|
||||
rev = "v${finalAttrs.version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-AIK/2CPXWie72quzCcofZMQ7OVsggNm2Cq9PBJXKyhw=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
@@ -27,15 +31,27 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [
|
||||
libpulseaudio
|
||||
systemd
|
||||
systemdMinimal
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Prevents swayidle from sleeping while any application is outputting or receiving audio";
|
||||
description = "Prevent swayidle/hypridle from sleeping";
|
||||
longDescription = ''
|
||||
SwayAudioIdleInhibit prevents swayidle/hypridle from sleeping
|
||||
while any application is outputting or receiving audio.
|
||||
|
||||
This requires systemd/elogind inhibit support and only works for
|
||||
Pulseaudio/Pipewire Pulse.
|
||||
'';
|
||||
homepage = "https://github.com/ErikReider/SwayAudioIdleInhibit";
|
||||
license = lib.licenses.gpl3Only;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ rafaelrc ];
|
||||
maintainers = with lib.maintainers; [
|
||||
rafaelrc
|
||||
yiyu
|
||||
];
|
||||
mainProgram = "sway-audio-idle-inhibit";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user