ncmpc: reformat with nixfmt-rfc-style

This commit is contained in:
Franz Pletz 2024-11-06 07:45:24 +01:00
parent b45fe742d3
commit d73bbaaebd
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,16 +1,18 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, glib
, ncurses
, libmpdclient
, gettext
, boost
, fmt
, pcreSupport ? false, pcre ? null
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
glib,
ncurses,
libmpdclient,
gettext,
boost,
fmt,
pcreSupport ? false,
pcre ? null,
}:
assert pcreSupport -> pcre != null;
@ -20,15 +22,26 @@ stdenv.mkDerivation rec {
version = "0.51";
src = fetchFromGitHub {
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
owner = "MusicPlayerDaemon";
repo = "ncmpc";
rev = "v${version}";
sha256 = "sha256-mFZ8szJT7eTPHQHxjpP5pThCcY0YERGkGR8528Xu9MA=";
};
buildInputs = [ glib ncurses libmpdclient boost fmt ]
++ lib.optional pcreSupport pcre;
nativeBuildInputs = [ meson ninja pkg-config gettext ];
buildInputs = [
glib
ncurses
libmpdclient
boost
fmt
] ++ lib.optional pcreSupport pcre;
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
];
mesonFlags = [
"-Dlirc=disabled"
@ -37,9 +50,9 @@ stdenv.mkDerivation rec {
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.all;
maintainers = with maintainers; [ fpletz ];
mainProgram = "ncmpc";
};