2021-02-12 12:33:14 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, ncurses
|
|
|
|
, libmpdclient
|
|
|
|
, gettext
|
|
|
|
, boost
|
|
|
|
, pcreSupport ? false, pcre ? null
|
2019-11-09 09:43:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert pcreSupport -> pcre != null;
|
2014-03-25 15:45:24 +01:00
|
|
|
|
2017-11-04 00:43:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ncmpc";
|
2023-09-19 04:38:17 +02:00
|
|
|
version = "0.49";
|
2014-03-25 15:45:24 +01:00
|
|
|
|
2017-06-09 06:54:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "ncmpc";
|
|
|
|
rev = "v${version}";
|
2023-09-19 04:38:17 +02:00
|
|
|
sha256 = "sha256-rqIlQQ9RhFrhPwUd9dZmMZiqwFinNoV46VaJ3pbyUI8=";
|
2014-03-25 15:45:24 +01:00
|
|
|
};
|
|
|
|
|
2021-02-12 12:33:14 +01:00
|
|
|
buildInputs = [ glib ncurses libmpdclient boost ]
|
2023-01-21 23:06:40 +01:00
|
|
|
++ lib.optional pcreSupport pcre;
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
2014-05-27 16:54:58 +02:00
|
|
|
|
2019-06-24 17:08:41 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlirc=disabled"
|
|
|
|
"-Ddocumentation=disabled"
|
2023-01-21 23:06:40 +01:00
|
|
|
] ++ lib.optional (!pcreSupport) "-Dregex=disabled";
|
2019-06-24 17:08:41 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-03-25 15:45:24 +01:00
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.musicpd.org/clients/ncmpc/";
|
2014-03-25 15:45:24 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
2017-10-02 20:23:56 +02:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2024-02-11 03:19:15 +01:00
|
|
|
mainProgram = "ncmpc";
|
2014-03-25 15:45:24 +01:00
|
|
|
};
|
|
|
|
}
|