2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, ncurses
|
|
|
|
, libmpdclient
|
|
|
|
, gettext
|
|
|
|
, boost
|
|
|
|
, pcreSupport ? false, pcre ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert pcreSupport -> pcre != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncmpc";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.48";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "ncmpc";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-89hBaWFwMPBqSWDmsXND0PEc1a9Fte+p1ho5tWuZFlY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ glib ncurses libmpdclient boost ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional pcreSupport pcre;
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dlirc=disabled"
|
|
|
|
"-Ddocumentation=disabled"
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optional (!pcreSupport) "-Dregex=disabled";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|