3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #73098 from phi-gamma/ncmpc-pcre

ncmpc: optionally use pcre
This commit is contained in:
Franz Pletz 2019-11-17 01:40:41 +00:00 committed by GitHub
commit 53b59ff935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,12 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
, mpd_clientlib, gettext, boost }:
, mpd_clientlib, gettext, boost
, pcreSupport ? false
, pcre ? null
}:
with stdenv.lib;
assert pcreSupport -> pcre != null;
stdenv.mkDerivation rec {
pname = "ncmpc";
@ -12,14 +19,14 @@ stdenv.mkDerivation rec {
sha256 = "1ssmk1p43gjhcqi86sh6b7csqpwwpf3hs32cmnylv6pmbcwbs69h";
};
buildInputs = [ glib ncurses mpd_clientlib boost ];
buildInputs = [ glib ncurses mpd_clientlib boost ]
++ optional pcreSupport pcre;
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
mesonFlags = [
"-Dlirc=disabled"
"-Dregex=disabled"
"-Ddocumentation=disabled"
];
] ++ optional (!pcreSupport) "-Dregex=disabled";
meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";