Skip to content

Commit

Permalink
ncmpc: 0.49 -> 0.51 (#353958)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex authored Nov 25, 2024
2 parents 0e107c1 + 8a8bce8 commit 3a2d84a
Showing 1 changed file with 47 additions and 28 deletions.
75 changes: 47 additions & 28 deletions pkgs/by-name/nc/ncmpc/package.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,63 @@
{ 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=";
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
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;
homepage = "https://www.musicpd.org/clients/ncmpc/";
license = licenses.gpl2Plus;
platforms = platforms.unix;
badPlatforms = platforms.darwin;
maintainers = with maintainers; [ fpletz ];
mainProgram = "ncmpc";
};
Expand Down

0 comments on commit 3a2d84a

Please sign in to comment.