2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkg-config, readline
|
2020-04-24 23:36:52 +00:00
|
|
|
, libiconv, icu, curl
|
|
|
|
, outputsSupport ? true # outputs screen
|
|
|
|
, visualizerSupport ? false, fftw ? null # visualizer screen
|
|
|
|
, clockSupport ? true # clock screen
|
|
|
|
, taglibSupport ? true, taglib ? null # tag editor
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert visualizerSupport -> (fftw != null);
|
|
|
|
assert taglibSupport -> (taglib != null);
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncmpcpp";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.9.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-25 13:55:36 +00:00
|
|
|
url = "https://rybczak.net/ncmpcpp/stable/${pname}-${version}.tar.bz2";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-+qv2FXyMsbJKBZryduFi+p+aO5zTgQxDuRKIYMk4Ohs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "BOOST_LIB_SUFFIX=" ]
|
|
|
|
++ optional outputsSupport "--enable-outputs"
|
|
|
|
++ optional visualizerSupport "--enable-visualizer --with-fftw"
|
|
|
|
++ optional clockSupport "--enable-clock"
|
|
|
|
++ optional taglibSupport "--with-taglib";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu curl ]
|
|
|
|
++ optional visualizerSupport fftw
|
|
|
|
++ optional taglibSupport taglib;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A featureful ncurses based MPD client inspired by ncmpc";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://rybczak.net/ncmpcpp/";
|
|
|
|
changelog = "https://github.com/ncmpcpp/ncmpcpp/blob/${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|