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