nixpkgs/pkgs/applications/audio/pamixer/default.nix

36 lines
985 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio }:
2014-04-18 15:09:34 +01:00
stdenv.mkDerivation rec {
2019-08-14 20:38:07 +01:00
pname = "pamixer";
version = "1.4";
2014-04-18 15:09:34 +01:00
src = fetchFromGitHub {
owner = "cdemoulins";
repo = "pamixer";
rev = version;
2019-08-14 20:38:07 +01:00
sha256 = "1i14550n8paijwwnhksv5izgfqm3s5q2773bdfp6vyqybkll55f7";
2014-04-18 15:09:34 +01:00
};
buildInputs = [ boost libpulseaudio ];
2014-04-18 15:09:34 +01:00
installPhase = ''
2019-08-14 20:38:07 +01:00
install -Dm755 pamixer -t $out/bin
2014-04-18 15:09:34 +01:00
'';
meta = with lib; {
2015-04-19 08:56:42 +01:00
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
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
'';
homepage = "https://github.com/cdemoulins/pamixer";
2014-04-18 15:09:34 +01:00
license = licenses.gpl3;
platforms = platforms.linux;
};
}