2021-02-12 11:33:14 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, ncurses
|
|
|
|
, libmpdclient
|
|
|
|
, gettext
|
|
|
|
, boost
|
|
|
|
, pcreSupport ? false, pcre ? null
|
2019-11-09 08:43:57 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2019-11-09 08:43:57 +00:00
|
|
|
|
|
|
|
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";
|
2021-02-05 06:33:02 +00:00
|
|
|
version = "0.44";
|
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}";
|
2021-02-05 06:33:02 +00:00
|
|
|
sha256 = "sha256-Qu41TL8KSKC9L25D6Z8bEbJUJQ9QI08grTGZ+0qGdUQ=";
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
|
2021-02-12 11:33:14 +00:00
|
|
|
buildInputs = [ glib ncurses libmpdclient boost ]
|
2019-11-09 08:43:57 +00:00
|
|
|
++ optional pcreSupport pcre;
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config 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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-03-25 14:45:24 +00:00
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
2020-04-01 02:11:51 +01: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
|
|
|
};
|
|
|
|
}
|