2018-03-06 16:26:09 +03:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio }:
|
2014-04-18 18:09:34 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-14 22:38:07 +03:00
|
|
|
pname = "pamixer";
|
|
|
|
version = "1.4";
|
2014-04-18 18:09:34 +04:00
|
|
|
|
2018-03-06 16:26:09 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdemoulins";
|
|
|
|
repo = "pamixer";
|
|
|
|
rev = version;
|
2019-08-14 22:38:07 +03:00
|
|
|
sha256 = "1i14550n8paijwwnhksv5izgfqm3s5q2773bdfp6vyqybkll55f7";
|
2014-04-18 18:09:34 +04:00
|
|
|
};
|
|
|
|
|
2015-05-27 22:42:15 +03:00
|
|
|
buildInputs = [ boost libpulseaudio ];
|
2014-04-18 18:09:34 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-14 22:38:07 +03:00
|
|
|
install -Dm755 pamixer -t $out/bin
|
2014-04-18 18:09:34 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-19 10:56:42 +03:00
|
|
|
description = "Pulseaudio command line mixer";
|
|
|
|
longDescription = ''
|
|
|
|
Features:
|
2020-06-23 16:59:14 +03:00
|
|
|
- Get the current volume of the default sink, the default source or a selected one by its id
|
2015-04-19 10:56:42 +03:00
|
|
|
- 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
|
|
|
|
'';
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/cdemoulins/pamixer";
|
2014-04-18 18:09:34 +04:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-04-19 00:48:12 +04:00
|
|
|
}
|