2015-04-19 10:56:42 +03:00
|
|
|
{ stdenv, fetchurl, boost, pulseaudio }:
|
2014-04-18 18:09:34 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-04-19 10:56:42 +03:00
|
|
|
name = "pamixer-${version}";
|
|
|
|
version = "1.2.1";
|
2014-04-18 18:09:34 +04:00
|
|
|
|
2015-04-13 14:28:29 +03:00
|
|
|
src = fetchurl {
|
2015-04-19 10:56:42 +03:00
|
|
|
url = "https://github.com/cdemoulins/pamixer/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1ad6b46hh02hs1978pgihrm2bnq4z2v0imrfm3wy74xdkr6xjxy4";
|
2014-04-18 18:09:34 +04:00
|
|
|
};
|
|
|
|
|
2015-04-19 10:56:42 +03:00
|
|
|
buildInputs = [ boost pulseaudio ];
|
2014-04-18 18:09:34 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pamixer $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-19 10:56:42 +03: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 18:09:34 +04:00
|
|
|
homepage = https://github.com/cdemoulins/pamixer;
|
|
|
|
license = licenses.gpl3;
|
2015-04-19 10:56:42 +03:00
|
|
|
maintainers = with maintainers; [ _1126 ];
|
2014-04-18 18:09:34 +04:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-04-19 00:48:12 +04:00
|
|
|
}
|