2015-05-27 19:42:15 +00:00
|
|
|
{ stdenv, fetchurl, boost, libpulseaudio }:
|
2014-04-18 14:09:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-04-19 07:56:42 +00:00
|
|
|
name = "pamixer-${version}";
|
2015-08-06 07:37:39 +00:00
|
|
|
version = "1.3";
|
2014-04-18 14:09:34 +00:00
|
|
|
|
2015-04-13 11:28:29 +00:00
|
|
|
src = fetchurl {
|
2015-04-19 07:56:42 +00:00
|
|
|
url = "https://github.com/cdemoulins/pamixer/archive/${version}.tar.gz";
|
2015-08-06 07:37:39 +00:00
|
|
|
sha256 = "091676ww4jbf4jr728gjfk7fkd5nisy70mr6f3s1p7n05hjpmfjx";
|
2014-04-18 14:09:34 +00:00
|
|
|
};
|
|
|
|
|
2015-05-27 19:42:15 +00:00
|
|
|
buildInputs = [ boost libpulseaudio ];
|
2014-04-18 14:09:34 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pamixer $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-19 07:56:42 +00:00
|
|
|
description = "Pulseaudio command line mixer";
|
|
|
|
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
|
|
|
|
'';
|
2014-04-18 14:09:34 +00:00
|
|
|
homepage = https://github.com/cdemoulins/pamixer;
|
|
|
|
license = licenses.gpl3;
|
2015-06-01 08:58:01 +00:00
|
|
|
maintainers = with maintainers; [ hiberno ];
|
2014-04-18 14:09:34 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-04-18 20:48:12 +00:00
|
|
|
}
|