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