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

47 lines
996 B
Nix
Raw Normal View History

2021-02-12 03:33:14 -08:00
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, glib
, ncurses
, libmpdclient
, gettext
, boost
, pcreSupport ? false, pcre ? null
2019-11-09 00:43:57 -08:00
}:
2021-01-15 05:21:58 -08:00
with lib;
2019-11-09 00:43:57 -08:00
assert pcreSupport -> pcre != null;
2014-03-25 07:45:24 -07:00
2017-11-03 16:43:27 -07:00
stdenv.mkDerivation rec {
pname = "ncmpc";
2021-02-14 23:47:02 -08:00
version = "0.45";
2014-03-25 07:45:24 -07:00
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
2021-02-14 23:47:02 -08:00
sha256 = "sha256-KDSHbEZ2PJLEIlXqPvBQ2ZPWno+IoajTjkl9faAXIko=";
2014-03-25 07:45:24 -07:00
};
2021-02-12 03:33:14 -08:00
buildInputs = [ glib ncurses libmpdclient boost ]
2019-11-09 00:43:57 -08:00
++ optional pcreSupport pcre;
nativeBuildInputs = [ meson ninja pkg-config gettext ];
mesonFlags = [
"-Dlirc=disabled"
"-Ddocumentation=disabled"
2019-11-09 00:43:57 -08:00
] ++ optional (!pcreSupport) "-Dregex=disabled";
meta = with lib; {
2014-03-25 07:45:24 -07:00
description = "Curses-based interface for MPD (music player daemon)";
homepage = "https://www.musicpd.org/clients/ncmpc/";
2014-03-25 07:45:24 -07:00
license = licenses.gpl2Plus;
platforms = platforms.all;
2017-10-02 11:23:56 -07:00
maintainers = with maintainers; [ fpletz ];
2014-03-25 07:45:24 -07:00
};
}