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