2017-10-02 19:23:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
|
2019-11-09 08:43:57 +00:00
|
|
|
, mpd_clientlib, gettext, boost
|
|
|
|
, pcreSupport ? false
|
|
|
|
, pcre ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
assert pcreSupport -> pcre != null;
|
2014-03-25 14:45:24 +00:00
|
|
|
|
2017-11-03 23:43:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ncmpc";
|
2019-11-07 20:00:02 +00:00
|
|
|
version = "0.36";
|
2014-03-25 14:45:24 +00:00
|
|
|
|
2017-06-09 05:54:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "ncmpc";
|
|
|
|
rev = "v${version}";
|
2019-11-07 20:00:02 +00:00
|
|
|
sha256 = "1ssmk1p43gjhcqi86sh6b7csqpwwpf3hs32cmnylv6pmbcwbs69h";
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
|
2019-11-09 08:43:57 +00:00
|
|
|
buildInputs = [ glib ncurses mpd_clientlib boost ]
|
|
|
|
++ optional pcreSupport pcre;
|
2017-10-02 19:23:56 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
2014-05-27 15:54:58 +01:00
|
|
|
|
2019-06-24 16:08:41 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlirc=disabled"
|
|
|
|
"-Ddocumentation=disabled"
|
2019-11-09 08:43:57 +00:00
|
|
|
] ++ optional (!pcreSupport) "-Dregex=disabled";
|
2019-06-24 16:08:41 +01:00
|
|
|
|
2014-03-25 14:45:24 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://www.musicpd.org/clients/ncmpc/;
|
2014-03-25 14:45:24 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
2017-10-02 19:23:56 +01:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
}
|