diff options
Diffstat (limited to 'pkgs/applications/audio/ncmpc/default.nix')
-rw-r--r-- | pkgs/applications/audio/ncmpc/default.nix | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/applications/audio/ncmpc/default.nix b/pkgs/applications/audio/ncmpc/default.nix index aea50d71d75..e397534d126 100644 --- a/pkgs/applications/audio/ncmpc/default.nix +++ b/pkgs/applications/audio/ncmpc/default.nix @@ -1,34 +1,42 @@ -{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses -, mpd_clientlib, gettext, boost -, pcreSupport ? false -, pcre ? null +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, glib +, ncurses +, libmpdclient +, gettext +, boost +, pcreSupport ? false, pcre ? null }: -with stdenv.lib; +with lib; assert pcreSupport -> pcre != null; stdenv.mkDerivation rec { pname = "ncmpc"; - version = "0.38"; + version = "0.45"; src = fetchFromGitHub { owner = "MusicPlayerDaemon"; repo = "ncmpc"; rev = "v${version}"; - sha256 = "1kidpd1xrfax3v31q93r9g9b7jd841476q47wgd94h1a86b70gs9"; + sha256 = "sha256-KDSHbEZ2PJLEIlXqPvBQ2ZPWno+IoajTjkl9faAXIko="; }; - buildInputs = [ glib ncurses mpd_clientlib boost ] + buildInputs = [ glib ncurses libmpdclient boost ] ++ optional pcreSupport pcre; - nativeBuildInputs = [ meson ninja pkgconfig gettext ]; + nativeBuildInputs = [ meson ninja pkg-config gettext ]; mesonFlags = [ "-Dlirc=disabled" "-Ddocumentation=disabled" ] ++ optional (!pcreSupport) "-Dregex=disabled"; - meta = with stdenv.lib; { + meta = with lib; { description = "Curses-based interface for MPD (music player daemon)"; homepage = "https://www.musicpd.org/clients/ncmpc/"; license = licenses.gpl2Plus; |