2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
, mpd_clientlib, gettext, boost
|
|
|
|
, pcreSupport ? false
|
|
|
|
, pcre ? null
|
|
|
|
}:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
assert pcreSupport -> pcre != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncmpc";
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "0.42";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "ncmpc";
|
|
|
|
rev = "v${version}";
|
2020-11-06 00:33:48 +00:00
|
|
|
sha256 = "1c21sbdm6pp3kwhnzc7c6ksna7madvsmfa7j91as2g8485symqv2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glib ncurses mpd_clientlib boost ]
|
|
|
|
++ optional pcreSupport pcre;
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dlirc=disabled"
|
|
|
|
"-Ddocumentation=disabled"
|
|
|
|
] ++ optional (!pcreSupport) "-Dregex=disabled";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
|
|
|
homepage = "https://www.musicpd.org/clients/ncmpc/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|