ncmpc: build manpage and enable regex

This commit is contained in:
Franz Pletz 2024-11-06 07:46:35 +01:00
parent d73bbaaebd
commit e999a6f576
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -5,18 +5,16 @@
meson,
ninja,
pkg-config,
sphinx,
glib,
ncurses,
libmpdclient,
gettext,
boost,
fmt,
pcreSupport ? false,
pcre ? null,
pcre2,
}:
assert pcreSupport -> pcre != null;
stdenv.mkDerivation rec {
pname = "ncmpc";
version = "0.51";
@ -34,19 +32,25 @@ stdenv.mkDerivation rec {
libmpdclient
boost
fmt
] ++ lib.optional pcreSupport pcre;
pcre2
];
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
sphinx
];
mesonFlags = [
"-Dlirc=disabled"
"-Ddocumentation=disabled"
] ++ lib.optional (!pcreSupport) "-Dregex=disabled";
(lib.mesonEnable "lirc" false)
];
outputs = [
"out"
"doc"
];
meta = with lib; {
description = "Curses-based interface for MPD (music player daemon)";