2015-04-13 13:28:29 +02:00
|
|
|
{ stdenv, fetchurl, unzip, pulseaudio, boost }:
|
2014-04-18 16:09:34 +02:00
|
|
|
|
|
|
|
let
|
2015-04-13 13:28:29 +02:00
|
|
|
tag = "1.2.1";
|
2014-04-18 16:09:34 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "pamixer-${tag}";
|
|
|
|
|
2015-04-13 13:28:29 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cdemoulins/pamixer/archive/1.2.1.zip";
|
|
|
|
sha256 = "2e66bb9810c853ae2d020d5e6eeb2b68cd43c6434b2298ccc423d9810f0cbd6a";
|
2014-04-18 16:09:34 +02:00
|
|
|
};
|
|
|
|
|
2015-04-13 13:28:29 +02:00
|
|
|
buildInputs = [ unzip pulseaudio boost ];
|
2014-04-18 16:09:34 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pamixer $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Like amixer but for pulseaudio";
|
2014-04-18 16:09:34 +02:00
|
|
|
longDescription = "Features:
|
|
|
|
- Get the current volume of the default sink, the default source or a selected one by his id
|
|
|
|
- Set the volume for the default sink, the default source or any other device
|
|
|
|
- List the sinks
|
|
|
|
- List the sources
|
|
|
|
- Increase / Decrease the volume for a device
|
|
|
|
- Mute or unmute a device";
|
|
|
|
homepage = https://github.com/cdemoulins/pamixer;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2014-04-18 22:48:12 +02:00
|
|
|
maintainers = [ maintainers._1126 ];
|
2014-04-18 16:09:34 +02:00
|
|
|
};
|
2014-04-18 22:48:12 +02:00
|
|
|
}
|