2014-04-18 14:09:34 +00:00
|
|
|
{ stdenv, fetchgit, pulseaudio, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
tag = "1.1";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "pamixer-${tag}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/cdemoulins/pamixer;
|
|
|
|
rev = "refs/tags/${tag}";
|
|
|
|
sha256 = "03r0sbfj85wp6yxa87pjg69ivmk0mxxa2nykr8gf2c607igmb034";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pulseaudio boost ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pamixer $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "pamixer is like amixer but for pulseaudio.";
|
|
|
|
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 20:48:12 +00:00
|
|
|
maintainers = [ maintainers._1126 ];
|
2014-04-18 14:09:34 +00:00
|
|
|
};
|
2014-04-18 20:48:12 +00:00
|
|
|
}
|