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 10:25:26 +02:00
, libiconv, icu, curl
, outputsSupport ? false # outputs screen
, visualizerSupport ? false, fftw ? null # visualizer screen
, clockSupport ? false # clock screen
, taglibSupport ? true, taglib ? null # tag editor
}:
assert visualizerSupport -> (fftw != null);
assert taglibSupport -> (taglib != null);
with stdenv.lib;
stdenv.mkDerivation rec {
name = "ncmpcpp-${version}";
2017-10-26 11:48:33 +02:00
version = "0.8.1";
src = fetchurl {
2017-10-26 11:48:33 +02:00
url = "https://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
sha256 = "1zw8d07b2bkssbsybg6jnmpq001w525viajrnz4jvfml3l55gyad";
};
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 13:03:34 +01:00
2015-06-01 02:35:10 +02:00
nativeBuildInputs = [ pkgconfig ];
2017-07-01 10:25:26 +02: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";
2017-10-26 11:48:33 +02:00
homepage = https://ncmpcpp.rybczak.net/;
license = licenses.gpl2Plus;
2017-07-01 10:25:26 +02:00
maintainers = with maintainers; [ jfrankenau koral lovek323 mornfall ];
platforms = platforms.all;
};
}