34 lines
780 B
Nix
34 lines
780 B
Nix
{ stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncpamixer";
|
|
version = "1.3.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fulhax";
|
|
repo = "ncpamixer";
|
|
rev = version;
|
|
sha256 = "1v3bz0vpgh18257hdnz3yvbnl51779g1h5b265zgc21ks7m1jw5z";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|