2015-02-08 21:58:32 +00:00
|
|
|
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
|
2015-12-19 11:05:24 +00:00
|
|
|
, libiconv, icu
|
2015-02-08 21:58:32 +00:00
|
|
|
, outputsSupport ? false # outputs screen
|
|
|
|
, visualizerSupport ? false, fftw ? null # visualizer screen
|
|
|
|
, clockSupport ? false # clock screen
|
|
|
|
, unicodeSupport ? true # utf8 support
|
|
|
|
, curlSupport ? true, curl ? null # allow fetching lyrics from the internet
|
|
|
|
, 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 curlSupport -> (curl != null);
|
|
|
|
assert taglibSupport -> (taglib != null);
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2011-12-05 01:32:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ncmpcpp-${version}";
|
2016-04-13 08:00:46 +01:00
|
|
|
version = "0.7.3";
|
2011-12-05 01:32:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-08 21:58:32 +00:00
|
|
|
url = "http://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
|
2016-04-13 08:00:46 +01:00
|
|
|
sha256 = "04mj6r0whikliblxfbz92pibwcd7a3ywkryf01a89zd4bi1jk2rc";
|
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 unicodeSupport "--enable-unicode"
|
|
|
|
++ optional curlSupport "--with-curl"
|
|
|
|
++ optional taglibSupport "--with-taglib";
|
2014-11-09 12:03:34 +00:00
|
|
|
|
2015-06-01 01:35:10 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2015-12-19 11:05:24 +00:00
|
|
|
buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu ]
|
2015-02-08 21:58:32 +00:00
|
|
|
++ optional curlSupport curl
|
|
|
|
++ 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";
|
|
|
|
homepage = http://ncmpcpp.rybczak.net/;
|
2013-07-04 00:12:39 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2014-12-23 21:44:33 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 mornfall koral ];
|
2013-07-04 00:12:39 +01:00
|
|
|
platforms = platforms.all;
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
}
|