Skip to content

Commit

Permalink
Merge pull request #265755 from rafaelrc7/add-sway-audio-idle-inhibit
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Nov 18, 2023
2 parents 965f3a2 + 9ed632b commit 0d37a4c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14834,6 +14834,12 @@
githubId = 1016742;
name = "Rafael García";
};
rafaelrc = {
email = "[email protected]";
name = "Rafael Carvalho";
github = "rafaelrc7";
githubId = 5376043;
};
ragge = {
email = "[email protected]";
github = "ragnard";
Expand Down
39 changes: 39 additions & 0 deletions pkgs/by-name/sw/sway-audio-idle-inhibit/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
, libpulseaudio
, wayland
, wayland-protocols
}:
stdenv.mkDerivation {
pname = "sway-audio-idle-inhibit";
version = "unstable-2023-08-09";

src = fetchFromGitHub {
owner = "ErikReider";
repo = "SwayAudioIdleInhibit";
rev = "c850bc4812216d03e05083c69aa05326a7fab9c7";
sha256 = "sha256-MKzyF5xY0uJ/UWewr8VFrK0y7ekvcWpMv/u9CHG14gs=";
};

nativeBuildInputs = [
meson ninja pkg-config
];

buildInputs = [
libpulseaudio wayland wayland-protocols
];

meta = with lib; {
description = "Prevents swayidle from sleeping while any application is outputting or receiving audio";
homepage = "https://github.com/ErikReider/SwayAudioIdleInhibit";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ rafaelrc ];
mainProgram = "sway-audio-idle-inhibit";
};
}

0 comments on commit 0d37a4c

Please sign in to comment.