nixpkgs/pkgs/applications/audio/ncmpcpp/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
2015-12-19 11:05:24 +00:00
, libiconv, icu
, 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
}:
assert visualizerSupport -> (fftw != null);
assert curlSupport -> (curl != null);
assert taglibSupport -> (taglib != null);
with stdenv.lib;
stdenv.mkDerivation rec {
name = "ncmpcpp-${version}";
2016-01-18 20:22:47 +00:00
version = "0.7.2";
src = fetchurl {
url = "http://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
2016-01-18 20:22:47 +00:00
sha256 = "0fq9nk796cp7gs0gwrabb6wp7f5h7pph10hrkrik1wf4k3mzb4k3";
};
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 ]
++ optional curlSupport curl
++ optional visualizerSupport fftw
++ optional taglibSupport taglib;
meta = {
description = "A featureful ncurses based MPD client inspired by ncmpc";
homepage = http://ncmpcpp.rybczak.net/;
license = licenses.gpl2Plus;
2014-12-23 21:44:33 +00:00
maintainers = with maintainers; [ lovek323 mornfall koral ];
platforms = platforms.all;
};
}