2021-10-06 13:57:05 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost, libpulseaudio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pamixer";
|
2021-10-06 13:57:05 +00:00
|
|
|
version = "1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdemoulins";
|
|
|
|
repo = "pamixer";
|
2021-10-06 13:57:05 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-7VNhHAQ1CecQPlqb8SMKK0U1SsFZxDuS+QkPqJfMqrQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost libpulseaudio ];
|
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pulseaudio command line mixer";
|
|
|
|
longDescription = ''
|
|
|
|
Features:
|
2020-07-18 16:06:22 +00:00
|
|
|
- Get the current volume of the default sink, the default source or a selected one by its id
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/cdemoulins/pamixer";
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with maintainers; [ thiagokokada ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-10-04 12:37:57 +00:00
|
|
|
mainProgram = "pamixer";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|