depot/pkgs/applications/audio/pamixer/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

44 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, boost
, cxxopts
, libpulseaudio
, meson
, ninja
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "pamixer";
version = "1.6";
src = fetchFromGitHub {
owner = "cdemoulins";
repo = "pamixer";
rev = version;
hash = "sha256-LbRhsW2MiTYWSH6X9Pz9XdJdH9Na0QCO8CFmlzZmDjQ=";
};
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = [ boost cxxopts libpulseaudio ];
meta = with lib; {
description = "Pulseaudio command line mixer";
longDescription = ''
Features:
- Get the current volume of the default sink, the default source or a selected one by its 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
'';
homepage = "https://github.com/cdemoulins/pamixer";
maintainers = with maintainers; [ thiagokokada ];
license = licenses.gpl3;
platforms = platforms.linux;
mainProgram = "pamixer";
};
}