2017-10-02 18:23:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
|
|
|
|
, mpd_clientlib, gettext }:
|
2014-03-25 14:45:24 +00:00
|
|
|
|
2017-11-03 23:43:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-03-25 14:45:24 +00:00
|
|
|
name = "ncmpc-${version}";
|
2018-01-28 00:23:37 +00:00
|
|
|
version = "0.29";
|
2014-03-25 14:45:24 +00:00
|
|
|
|
2017-06-09 04:54:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MusicPlayerDaemon";
|
|
|
|
repo = "ncmpc";
|
|
|
|
rev = "v${version}";
|
2018-01-28 00:23:37 +00:00
|
|
|
sha256 = "1b2kbx2phbf4s2qpy7mx72c87xranljr0yam6z9m1i1kvcnp8q1q";
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
|
2017-06-09 04:54:56 +00:00
|
|
|
buildInputs = [ glib ncurses mpd_clientlib ];
|
2017-10-02 18:23:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
2014-05-27 14:54:58 +00:00
|
|
|
|
2018-01-31 07:35:08 +00:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
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 18:23:56 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
}
|