2021-10-04 17:19:08 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost, libpulseaudio }:
|
2014-04-18 15:09:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-14 20:38:07 +01:00
|
|
|
pname = "pamixer";
|
2021-10-04 17:11:53 +01:00
|
|
|
version = "1.5";
|
2014-04-18 15:09:34 +01:00
|
|
|
|
2018-03-06 13:26:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdemoulins";
|
|
|
|
repo = "pamixer";
|
2021-10-04 17:11:53 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-7VNhHAQ1CecQPlqb8SMKK0U1SsFZxDuS+QkPqJfMqrQ=";
|
2014-04-18 15:09:34 +01:00
|
|
|
};
|
|
|
|
|
2015-05-27 20:42:15 +01:00
|
|
|
buildInputs = [ boost libpulseaudio ];
|
2014-04-18 15:09:34 +01:00
|
|
|
|
2021-10-04 17:19:08 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2014-04-18 15:09:34 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-04-19 08:56:42 +01:00
|
|
|
description = "Pulseaudio command line mixer";
|
|
|
|
longDescription = ''
|
|
|
|
Features:
|
2020-06-23 14:59:14 +01:00
|
|
|
- Get the current volume of the default sink, the default source or a selected one by its id
|
2015-04-19 08:56:42 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/cdemoulins/pamixer";
|
2021-09-29 21:33:07 +01:00
|
|
|
maintainers = with maintainers; [ thiagokokada ];
|
2014-04-18 15:09:34 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-09-29 21:33:07 +01:00
|
|
|
mainProgram = "pamixer";
|
2014-04-18 15:09:34 +01:00
|
|
|
};
|
2014-04-18 21:48:12 +01:00
|
|
|
}
|