2015-02-08 22:58:32 +01:00
|
|
|
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
|
2017-07-01 10:25:26 +02:00
|
|
|
, libiconv, icu, curl
|
2019-02-19 21:47:06 +01:00
|
|
|
, outputsSupport ? true # outputs screen
|
2015-02-08 22:58:32 +01:00
|
|
|
, visualizerSupport ? false, fftw ? null # visualizer screen
|
2019-02-19 21:47:06 +01:00
|
|
|
, clockSupport ? true # clock screen
|
2015-02-08 22:58:32 +01:00
|
|
|
, taglibSupport ? true, taglib ? null # tag editor
|
|
|
|
}:
|
2011-12-05 02:32:25 +01:00
|
|
|
|
2015-02-08 22:58:32 +01:00
|
|
|
assert visualizerSupport -> (fftw != null);
|
|
|
|
assert taglibSupport -> (taglib != null);
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-12-05 02:32:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ncmpcpp";
|
2020-12-23 05:20:00 +01:00
|
|
|
version = "0.9.1";
|
2011-12-05 02:32:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-23 05:20:00 +01:00
|
|
|
url = "https://rybczak.net/ncmpcpp/stable/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "0x35nd4v31sma8fliqdbn1nxpjyi8hv472318sfb3xbmr4wlm0fb";
|
2011-12-05 02:32:25 +01:00
|
|
|
};
|
|
|
|
|
2015-02-08 22:58:32 +01:00
|
|
|
configureFlags = [ "BOOST_LIB_SUFFIX=" ]
|
|
|
|
++ optional outputsSupport "--enable-outputs"
|
|
|
|
++ optional visualizerSupport "--enable-visualizer --with-fftw"
|
|
|
|
++ optional clockSupport "--enable-clock"
|
|
|
|
++ optional taglibSupport "--with-taglib";
|
2014-11-09 13:03:34 +01:00
|
|
|
|
2015-06-01 02:35:10 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2017-07-01 10:25:26 +02:00
|
|
|
buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu curl ]
|
2015-02-08 22:58:32 +01:00
|
|
|
++ optional visualizerSupport fftw
|
2015-02-12 01:37:22 +01:00
|
|
|
++ optional taglibSupport taglib;
|
2011-12-05 02:32:25 +01:00
|
|
|
|
2015-02-08 22:58:32 +01:00
|
|
|
meta = {
|
|
|
|
description = "A featureful ncurses based MPD client inspired by ncmpc";
|
2020-12-23 05:20:00 +01:00
|
|
|
homepage = "https://rybczak.net/ncmpcpp/";
|
|
|
|
changelog = "https://github.com/ncmpcpp/ncmpcpp/blob/${version}/CHANGELOG.md";
|
2013-07-04 01:12:39 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-01-17 06:13:23 +01:00
|
|
|
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
|
2017-07-01 10:25:26 +02:00
|
|
|
platforms = platforms.all;
|
2011-12-05 02:32:25 +01:00
|
|
|
};
|
|
|
|
}
|