27 lines
815 B
Nix
27 lines
815 B
Nix
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
|
|
, mpd_clientlib, gettext }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ncmpc-${version}";
|
|
version = "0.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MusicPlayerDaemon";
|
|
repo = "ncmpc";
|
|
rev = "v${version}";
|
|
sha256 = "1z0bdkqsdb3f5k2lsws3qzav4r30fzk8fhxj9l0p738flcka6k4n";
|
|
};
|
|
|
|
buildInputs = [ glib ncurses mpd_clientlib ];
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
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;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|