2018-02-16 22:50:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "ncpamixer-${version}";
|
2019-03-11 03:55:05 +01:00
|
|
|
version = "1.3.3";
|
2018-02-16 22:50:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fulhax";
|
|
|
|
repo = "ncpamixer";
|
|
|
|
rev = version;
|
2019-03-11 03:55:05 +01:00
|
|
|
sha256 = "19pxfvfhhrbfk1wz5awx60y51jccrgrcvlq7lb622sw2z0wzw4ac";
|
2018-02-16 22:50:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses libpulseaudio ];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
make PREFIX=$out build/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make build
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An ncurses mixer for PulseAudio inspired by pavucontrol";
|
|
|
|
homepage = https://github.com/fulhax/ncpamixer;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ StijnDW ];
|
|
|
|
};
|
|
|
|
}
|