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

53 lines
1.4 KiB
Nix
Raw Normal View History

2021-02-12 12:33:40 +01:00
{ lib
, stdenv
, fetchurl
, boost
, libmpdclient
, ncurses
, pkg-config
, readline
, 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);
2021-01-15 14:21:58 +01:00
with lib;
stdenv.mkDerivation rec {
pname = "ncmpcpp";
2021-01-30 18:48:35 +01:00
version = "0.9.2";
src = fetchurl {
2020-12-23 05:20:00 +01:00
url = "https://rybczak.net/ncmpcpp/stable/${pname}-${version}.tar.bz2";
2021-01-30 18:48:35 +01:00
sha256 = "sha256-+qv2FXyMsbJKBZryduFi+p+aO5zTgQxDuRKIYMk4Ohs=";
};
2021-04-28 22:33:23 +02:00
enableParallelBuilding = true;
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
nativeBuildInputs = [ pkg-config ];
2015-06-01 02:35:10 +02:00
2021-02-12 12:33:40 +01:00
buildInputs = [ boost libmpdclient ncurses readline libiconv icu curl ]
++ optional visualizerSupport fftw
++ optional taglibSupport taglib;
meta = {
description = "A featureful ncurses based MPD client inspired by ncmpc";
2020-12-23 05:20:00 +01:00
homepage = "https://rybczak.net/ncmpcpp/";
changelog = "https://github.com/ncmpcpp/ncmpcpp/blob/${version}/CHANGELOG.md";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
2017-07-01 10:25:26 +02:00
platforms = platforms.all;
};
}