2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkg-config }:
|
2018-02-16 22:50:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ncpamixer";
|
2020-11-03 14:24:42 +01:00
|
|
|
version = "1.3.3.1";
|
2018-02-16 22:50:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fulhax";
|
|
|
|
repo = "ncpamixer";
|
|
|
|
rev = version;
|
2020-11-03 14:24:42 +01:00
|
|
|
sha256 = "1v3bz0vpgh18257hdnz3yvbnl51779g1h5b265zgc21ks7m1jw5z";
|
2018-02-16 22:50:45 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 08:48:55 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-02-16 22:50:45 +01:00
|
|
|
|
2021-02-12 02:42:39 +01:00
|
|
|
buildInputs = [ ncurses libpulseaudio ];
|
2018-02-16 22:50:45 +01:00
|
|
|
|
2021-02-12 02:42:39 +01:00
|
|
|
configurePhase = ''
|
|
|
|
make PREFIX=$out USE_WIDE=1 RELEASE=1 build/Makefile
|
2018-02-16 22:50:45 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-16 22:50:45 +01:00
|
|
|
description = "An ncurses mixer for PulseAudio inspired by pavucontrol";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/fulhax/ncpamixer";
|
2018-02-16 22:50:45 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2021-02-12 02:42:39 +01:00
|
|
|
maintainers = with maintainers; [ StijnDW SuperSandro2000 ];
|
2018-02-16 22:50:45 +01:00
|
|
|
};
|
|
|
|
}
|