Merge pull request #265755 from rafaelrc7/add-sway-audio-idle-inhibit

authored by Artturi and committed by GitHub 0d37a4c4 965f3a22

+45
+6
maintainers/maintainer-list.nix
··· 14834 14834 githubId = 1016742; 14835 14835 name = "Rafael García"; 14836 14836 }; 14837 + rafaelrc = { 14838 + email = "contact@rafaelrc.com"; 14839 + name = "Rafael Carvalho"; 14840 + github = "rafaelrc7"; 14841 + githubId = 5376043; 14842 + }; 14837 14843 ragge = { 14838 14844 email = "r.dahlen@gmail.com"; 14839 14845 github = "ragnard";
+39
pkgs/by-name/sw/sway-audio-idle-inhibit/package.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , meson 5 + , ninja 6 + , pkg-config 7 + , libpulseaudio 8 + , wayland 9 + , wayland-protocols 10 + }: 11 + stdenv.mkDerivation { 12 + pname = "sway-audio-idle-inhibit"; 13 + version = "unstable-2023-08-09"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "ErikReider"; 17 + repo = "SwayAudioIdleInhibit"; 18 + rev = "c850bc4812216d03e05083c69aa05326a7fab9c7"; 19 + sha256 = "sha256-MKzyF5xY0uJ/UWewr8VFrK0y7ekvcWpMv/u9CHG14gs="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + meson ninja pkg-config 24 + ]; 25 + 26 + buildInputs = [ 27 + libpulseaudio wayland wayland-protocols 28 + ]; 29 + 30 + meta = with lib; { 31 + description = "Prevents swayidle from sleeping while any application is outputting or receiving audio"; 32 + homepage = "https://github.com/ErikReider/SwayAudioIdleInhibit"; 33 + license = licenses.gpl3Only; 34 + platforms = platforms.linux; 35 + maintainers = with maintainers; [ rafaelrc ]; 36 + mainProgram = "sway-audio-idle-inhibit"; 37 + }; 38 + } 39 +