2021-02-12 11:33:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, boost
|
|
|
|
, libmpdclient
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, libiconv
|
|
|
|
, icu
|
|
|
|
, curl
|
2019-02-19 20:47:06 +00:00
|
|
|
, outputsSupport ? true # outputs screen
|
2022-09-07 19:29:00 +00:00
|
|
|
, visualizerSupport ? false, fftw # visualizer screen
|
2019-02-19 20:47:06 +00:00
|
|
|
, clockSupport ? true # clock screen
|
2022-09-07 19:29:00 +00:00
|
|
|
, taglibSupport ? true, taglib # tag editor
|
2015-02-08 21:58:32 +00:00
|
|
|
}:
|
2011-12-05 01:32:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ncmpcpp";
|
2021-01-30 17:48:35 +00:00
|
|
|
version = "0.9.2";
|
2011-12-05 01:32:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-23 04:20:00 +00:00
|
|
|
url = "https://rybczak.net/ncmpcpp/stable/${pname}-${version}.tar.bz2";
|
2021-01-30 17:48:35 +00:00
|
|
|
sha256 = "sha256-+qv2FXyMsbJKBZryduFi+p+aO5zTgQxDuRKIYMk4Ohs=";
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
|
2021-04-28 20:33:23 +00:00
|
|
|
enableParallelBuilding = true;
|
2022-09-07 19:35:52 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
2015-02-08 21:58:32 +00:00
|
|
|
configureFlags = [ "BOOST_LIB_SUFFIX=" ]
|
2022-09-07 19:29:00 +00:00
|
|
|
++ lib.optional outputsSupport "--enable-outputs"
|
|
|
|
++ lib.optional visualizerSupport "--enable-visualizer --with-fftw"
|
|
|
|
++ lib.optional clockSupport "--enable-clock"
|
|
|
|
++ lib.optional taglibSupport "--with-taglib";
|
2014-11-09 12:03:34 +00:00
|
|
|
|
2022-09-07 19:35:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ]
|
|
|
|
++ lib.optional taglibSupport taglib;
|
2015-06-01 00:35:10 +00:00
|
|
|
|
2021-02-12 11:33:40 +00:00
|
|
|
buildInputs = [ boost libmpdclient ncurses readline libiconv icu curl ]
|
2022-09-07 19:29:00 +00:00
|
|
|
++ lib.optional visualizerSupport fftw
|
|
|
|
++ lib.optional taglibSupport taglib;
|
2011-12-05 01:32:25 +00:00
|
|
|
|
2022-09-07 19:29:00 +00:00
|
|
|
meta = with lib; {
|
2015-02-08 21:58:32 +00:00
|
|
|
description = "A featureful ncurses based MPD client inspired by ncmpc";
|
2020-12-23 04:20:00 +00:00
|
|
|
homepage = "https://rybczak.net/ncmpcpp/";
|
|
|
|
changelog = "https://github.com/ncmpcpp/ncmpcpp/blob/${version}/CHANGELOG.md";
|
2013-07-03 23:12:39 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
|
2017-07-01 08:25:26 +00:00
|
|
|
platforms = platforms.all;
|
2011-12-05 01:32:25 +00:00
|
|
|
};
|
|
|
|
}
|