about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sw/sway-audio-idle-inhibit/package.nix
blob: ae41f6a2368417c05c138e01958d224ea989198b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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";
  };
}