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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
993 B
Nix
Raw Normal View History

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