nixpkgs-suyu/pkgs/applications/audio/ncmpc/default.nix

39 lines
996 B
Nix
Raw Normal View History

2017-10-02 20:23:56 +02:00
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
2019-11-09 09:43:57 +01:00
, mpd_clientlib, gettext, boost
, pcreSupport ? false
, pcre ? null
}:
with stdenv.lib;
assert pcreSupport -> pcre != null;
2014-03-25 15:45:24 +01:00
2017-11-04 00:43:27 +01:00
stdenv.mkDerivation rec {
pname = "ncmpc";
2020-01-27 12:06:24 +01:00
version = "0.37";
2014-03-25 15:45:24 +01:00
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
2020-01-27 12:06:24 +01:00
sha256 = "1b0vd0h49kjg4nxjfjrcg8gzplz93ryr6xyfha2pvhlrzdd2d1lj";
2014-03-25 15:45:24 +01:00
};
2019-11-09 09:43:57 +01:00
buildInputs = [ glib ncurses mpd_clientlib boost ]
++ optional pcreSupport pcre;
2017-10-02 20:23:56 +02:00
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
mesonFlags = [
"-Dlirc=disabled"
"-Ddocumentation=disabled"
2019-11-09 09:43:57 +01:00
] ++ optional (!pcreSupport) "-Dregex=disabled";
2014-03-25 15:45:24 +01:00
meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";
homepage = https://www.musicpd.org/clients/ncmpc/;
2014-03-25 15:45:24 +01:00
license = licenses.gpl2Plus;
platforms = platforms.all;
2017-10-02 20:23:56 +02:00
maintainers = with maintainers; [ fpletz ];
2014-03-25 15:45:24 +01:00
};
}