2017-06-09 04:54:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, ncurses, mpd_clientlib, libintlOrEmpty }:
|
2014-03-25 14:45:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ncmpc-${version}";
|
2017-06-09 04:54:56 +00:00
|
|
|
version = "0.27";
|
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}";
|
|
|
|
sha256 = "0sfal3wadqvy6yas4xzhw35awdylikci8kbdcmgm4l2afpmc1lrr";
|
2014-03-25 14:45:24 +00:00
|
|
|
};
|
|
|
|
|
2017-06-09 04:54:56 +00:00
|
|
|
buildInputs = [ glib ncurses mpd_clientlib ];
|
|
|
|
# ++ libintlOrEmpty;
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2014-03-25 14:45:24 +00:00
|
|
|
|
2014-05-27 14:54:58 +00:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2017-06-09 04:54:56 +00:00
|
|
|
# without this, po/Makefile.in.in is not being created
|
|
|
|
preAutoreconf = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2014-09-18 14:06:43 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-colors"
|
|
|
|
"--enable-lyrics-screen"
|
|
|
|
];
|
|
|
|
|
2014-03-25 14:45:24 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
|
|
|
homepage = http://www.musicpd.org/clients/ncmpc/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|