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

42 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
2017-07-01 08:25:26 +00:00
, libiconv, icu, curl
, outputsSupport ? true # outputs screen
, visualizerSupport ? false, fftw ? null # visualizer screen
, clockSupport ? true # clock screen
, taglibSupport ? true, taglib ? null # tag editor
}:
assert visualizerSupport -> (fftw != null);
assert taglibSupport -> (taglib != null);
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "ncmpcpp";
version = "0.8.2";
src = fetchurl {
url = "https://ncmpcpp.rybczak.net/stable/${pname}-${version}.tar.bz2";
sha256 = "0m0mjb049sl62vx13h9waavysa30mk0rphacksnvf94n13la62v5";
};
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 ]
++ optional visualizerSupport fftw
++ optional taglibSupport taglib;
meta = {
description = "A featureful ncurses based MPD client inspired by ncmpc";
homepage = "https://ncmpcpp.rybczak.net/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
2017-07-01 08:25:26 +00:00
platforms = platforms.all;
};
}