Unverified Commit 3a2d84ad authored by Sefa Eyeoglu's avatar Sefa Eyeoglu Committed by GitHub
Browse files

ncmpc: 0.49 -> 0.51 (#353958)

parents 0e107c16 8a8bce8b
Loading
Loading
Loading
Loading
+47 −28
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, glib
, ncurses
, libmpdclient
, gettext
, boost
, pcreSupport ? false, pcre ? null
{
  lib,
  stdenv,
  fetchFromGitHub,
  meson,
  ninja,
  pkg-config,
  sphinx,
  glib,
  ncurses,
  libmpdclient,
  gettext,
  boost,
  fmt,
  pcre2,
}:

assert pcreSupport -> pcre != null;

stdenv.mkDerivation rec {
  pname = "ncmpc";
  version = "0.49";
  version = "0.51";

  src = fetchFromGitHub {
    owner = "MusicPlayerDaemon";
    repo = "ncmpc";
    rev = "v${version}";
    sha256 = "sha256-rqIlQQ9RhFrhPwUd9dZmMZiqwFinNoV46VaJ3pbyUI8=";
    sha256 = "sha256-mFZ8szJT7eTPHQHxjpP5pThCcY0YERGkGR8528Xu9MA=";
  };

  buildInputs = [ glib ncurses libmpdclient boost ]
    ++ lib.optional pcreSupport pcre;
  nativeBuildInputs = [ meson ninja pkg-config gettext ];
  buildInputs = [
    glib
    ncurses
    libmpdclient
    boost
    fmt
    pcre2
  ];

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    gettext
    sphinx
  ];

  mesonFlags = [
    "-Dlirc=disabled"
    "-Ddocumentation=disabled"
  ] ++ lib.optional (!pcreSupport) "-Dregex=disabled";
    (lib.mesonEnable "lirc" false)
  ];

  outputs = [
    "out"
    "doc"
  ];

  meta = with lib; {
    description = "Curses-based interface for MPD (music player daemon)";
    homepage = "https://www.musicpd.org/clients/ncmpc/";
    license = licenses.gpl2Plus;
    platforms   = platforms.all;
    platforms = platforms.unix;
    badPlatforms = platforms.darwin;
    maintainers = with maintainers; [ fpletz ];
    mainProgram = "ncmpc";
  };