@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+
5+ name = "ncpamixer-${version}";
6+ version = "1.2";
7+
8+ src = fetchFromGitHub {
9+ owner = "fulhax";
10+ repo = "ncpamixer";
11+ rev = version;
12+ sha256 = "01kvd0pg5yraymlln5xdzqj1r6adxfvvza84wxn2481kcxfral54";
13+ };
14+
15+ buildInputs = [ ncurses libpulseaudio ];
16+ nativeBuildInputs = [ cmake pkgconfig ];
17+
18+ configurePhase = ''
19+ make PREFIX=$out build/Makefile
20+ '';
21+
22+ buildPhase = ''
23+ make build
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "An ncurses mixer for PulseAudio inspired by pavucontrol";
28+ homepage = https://github.com/fulhax/ncpamixer;
29+ license = licenses.mit;
30+ platforms = platforms.linux;
31+ maintainers = with maintainers; [ StijnDW ];
32+ };
33+}