2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, cmake, ncurses, libpulseaudio, pandoc, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncpamixer";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fulhax";
|
|
|
|
repo = "ncpamixer";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-GJ2zSIxSnL53nFZ2aeGlVI7i4APt+aALVEhNP5RkpMc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
|
|
|
./remove_dynamic_download.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = let
|
|
|
|
PandocMan = fetchurl {
|
|
|
|
url = "https://github.com/rnpgp/cmake-modules/raw/387084811ee01a69911fe86bcc644b7ed8ad6304/PandocMan.cmake";
|
|
|
|
hash = "sha256-KI55Yc2IuQtmbptqkk6Hzr75gIE/uQdUbQsm/fDpaWg=";
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
substituteInPlace src/CMakeLists.txt \
|
|
|
|
--replace "include(PandocMan)" "include(${PandocMan})"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pandoc pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ ncurses libpulseaudio ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
configurePhase = ''
|
|
|
|
make PREFIX=$out USE_WIDE=1 RELEASE=1 build/Makefile
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Terminal mixer for PulseAudio inspired by pavucontrol";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/fulhax/ncpamixer";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = teams.c3d2.members;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ncpamixer";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|