2014-05-26 20:20:47 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, ncurses, mpd_clientlib, libintlOrEmpty }:
|
2014-03-25 18:45:24 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-18 18:08:08 +04:00
|
|
|
version = "0.24";
|
2014-03-25 18:45:24 +04:00
|
|
|
name = "ncmpc-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-07 14:49:35 +04:00
|
|
|
url = "http://www.musicpd.org/download/ncmpc/0/ncmpc-${version}.tar.xz";
|
2014-09-18 18:08:08 +04:00
|
|
|
sha256 = "1sf3nirs3mcx0r5i7acm9bsvzqzlh730m0yjg6jcyj8ln6r7cvqf";
|
2014-03-25 18:45:24 +04:00
|
|
|
};
|
|
|
|
|
2014-05-26 20:20:47 +04:00
|
|
|
buildInputs = [ pkgconfig glib ncurses mpd_clientlib ]
|
|
|
|
++ libintlOrEmpty;
|
2014-03-25 18:45:24 +04:00
|
|
|
|
2014-05-27 18:54:58 +04:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2014-09-18 18:06:43 +04:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-colors"
|
|
|
|
"--enable-lyrics-screen"
|
|
|
|
];
|
|
|
|
|
2014-03-25 18:45:24 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Curses-based interface for MPD (music player daemon)";
|
|
|
|
homepage = http://www.musicpd.org/clients/ncmpc/;
|
|
|
|
license = licenses.gpl2Plus;
|
2015-06-01 11:58:01 +03:00
|
|
|
maintainers = with maintainers; [ hiberno ];
|
2014-03-25 18:45:24 +04:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|