2018-03-06 13:26:09 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio }:
|
2014-04-18 15:09:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-19 08:56:42 +01:00
|
|
|
name = "pamixer-${version}";
|
2018-02-27 17:25:26 +00:00
|
|
|
version = "1.3.1";
|
2014-04-18 15:09:34 +01:00
|
|
|
|
2018-03-06 13:26:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdemoulins";
|
|
|
|
repo = "pamixer";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "15zs2x4hnrpxphqn542b6qqm4ymvhkvbcfyffy69d6cki51chzzw";
|
2014-04-18 15:09:34 +01:00
|
|
|
};
|
|
|
|
|
2018-03-06 13:26:09 +00:00
|
|
|
# Remove after https://github.com/cdemoulins/pamixer/pull/16 gets fixed
|
|
|
|
patches = [(fetchpatch {
|
|
|
|
url = "https://github.com/oxij/pamixer/commit/dea1cd967aa837940e5c0b04ef7ebc47a7a93d63.patch";
|
|
|
|
sha256 = "0s77xmsiwywyyp6f4bjxg1sqdgms1k5fiy7na6ws0aswshfnzfjb";
|
|
|
|
})];
|
|
|
|
|
2015-05-27 20:42:15 +01:00
|
|
|
buildInputs = [ boost libpulseaudio ];
|
2014-04-18 15:09:34 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp pamixer $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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 his 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
|
|
|
|
'';
|
2014-04-18 15:09:34 +01:00
|
|
|
homepage = https://github.com/cdemoulins/pamixer;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-04-18 21:48:12 +01:00
|
|
|
}
|