2015-02-08 21:58:32 +00:00
|
|
|
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
|
2017-07-01 08:25:26 +00:00
|
|
|
, libiconv, icu, curl
|
2015-02-08 21:58:32 +00:00
|
|
|
, outputsSupport ? false # outputs screen
|
|
|
|
, visualizerSupport ? false, fftw ? null # visualizer screen
|
|
|
|
, clockSupport ? false # clock screen
|
|
|
|
, taglibSupport ? true, taglib ? null # tag editor
|
|
|
|
}:
|
2011-12-05 01:32:25 +00:00
|
|
|
|
2015-02-08 21:58:32 +00:00
|
|
|
assert visualizerSupport -> (fftw != null);
|
|
|
|
assert taglibSupport -> (taglib != null);
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-12-05 01:32:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ncmpcpp-${version}";
|
2017-10-26 09:48:33 +00:00
|
|
|
version = "0.8.1";
|
2011-12-05 01:32:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-26 09:48:33 +00:00
|
|
|
url = "https://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
|
|
|
|
sha256 = "1zw8d07b2bkssbsybg6jnmpq001w525viajrnz4jvfml3l55gyad";
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
|
2015-02-08 21:58:32 +00: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 12:03:34 +00:00
|
|
|
|
2015-06-01 00:35:10 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2017-07-01 08:25:26 +00:00
|
|
|
buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu curl ]
|
2015-02-08 21:58:32 +00:00
|
|
|
++ optional visualizerSupport fftw
|
2015-02-12 00:37:22 +00:00
|
|
|
++ optional taglibSupport taglib;
|
2011-12-05 01:32:25 +00:00
|
|
|
|
2015-02-08 21:58:32 +00:00
|
|
|
meta = {
|
|
|
|
description = "A featureful ncurses based MPD client inspired by ncmpc";
|
2017-10-26 09:48:33 +00:00
|
|
|
homepage = https://ncmpcpp.rybczak.net/;
|
2013-07-03 23:12:39 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
|
2017-07-01 08:25:26 +00:00
|
|
|
platforms = platforms.all;
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
}
|