ncmpcpp: 0.7.7 -> 0.8

This commit is contained in:
Johannes Frankenau 2017-07-01 10:25:26 +02:00 committed by vbgl
parent 6acb707f35
commit 1add3519df

View File

@ -1,39 +1,33 @@
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline { stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
, libiconv, icu , libiconv, icu, curl
, outputsSupport ? false # outputs screen , outputsSupport ? false # outputs screen
, visualizerSupport ? false, fftw ? null # visualizer screen , visualizerSupport ? false, fftw ? null # visualizer screen
, clockSupport ? false # clock 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 , taglibSupport ? true, taglib ? null # tag editor
}: }:
assert visualizerSupport -> (fftw != null); assert visualizerSupport -> (fftw != null);
assert curlSupport -> (curl != null);
assert taglibSupport -> (taglib != null); assert taglibSupport -> (taglib != null);
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ncmpcpp-${version}"; name = "ncmpcpp-${version}";
version = "0.7.7"; version = "0.8";
src = fetchurl { src = fetchurl {
url = "http://ncmpcpp.rybczak.net/stable/${name}.tar.bz2"; url = "http://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
sha256 = "1vq19m36608pvw1g8nbcaqqb89wsw05v35pi45xwr20z7g4bxg5p"; sha256 = "0nj6ky805a55acj0w57sbn3vfmmkbqp97rhbi0q9848n10f2l3rg";
}; };
configureFlags = [ "BOOST_LIB_SUFFIX=" ] configureFlags = [ "BOOST_LIB_SUFFIX=" ]
++ optional outputsSupport "--enable-outputs" ++ optional outputsSupport "--enable-outputs"
++ optional visualizerSupport "--enable-visualizer --with-fftw" ++ optional visualizerSupport "--enable-visualizer --with-fftw"
++ optional clockSupport "--enable-clock" ++ optional clockSupport "--enable-clock"
++ optional unicodeSupport "--enable-unicode"
++ optional curlSupport "--with-curl"
++ optional taglibSupport "--with-taglib"; ++ optional taglibSupport "--with-taglib";
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu ] buildInputs = [ boost mpd_clientlib ncurses readline libiconv icu curl ]
++ optional curlSupport curl
++ optional visualizerSupport fftw ++ optional visualizerSupport fftw
++ optional taglibSupport taglib; ++ optional taglibSupport taglib;
@ -41,7 +35,7 @@ stdenv.mkDerivation rec {
description = "A featureful ncurses based MPD client inspired by ncmpc"; description = "A featureful ncurses based MPD client inspired by ncmpc";
homepage = http://ncmpcpp.rybczak.net/; homepage = http://ncmpcpp.rybczak.net/;
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ lovek323 mornfall koral ]; maintainers = with maintainers; [ jfrankenau koral lovek323 mornfall ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }