blob: a4063dd34f8c60bddd9cf66b06f083a2c26424c4 (
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
40
41
42
43
44
|
{ lib
, bash
, coreutils
, fetchFromGitHub
, gawk
, makeWrapper
, pulseaudio
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "polybar-pulseaudio-control";
version = "3.1.1";
src = fetchFromGitHub {
owner = "marioortizmanero";
repo = "polybar-pulseaudio-control";
rev = "v${finalAttrs.version}";
hash = "sha256-egCBCnhnmHHKFeDkpaF9Upv/oZ0K3XGyutnp4slq9Vc=";
};
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 pulseaudio-control.bash $out/bin/pulseaudio-control
wrapProgram "$out/bin/pulseaudio-control" \
--prefix PATH : "${lib.makeBinPath [ bash coreutils gawk pulseaudio ]}"
runHook postInstall
'';
meta = with lib; {
mainProgram = "pulseaudio-control";
description = "Polybar module to control PulseAudio devices, also known as Pavolume";
homepage = "https://github.com/marioortizmanero/polybar-pulseaudio-control";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ benlemasurier ];
};
})
|