mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
8a41729c5c
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ncmpcpp/versions. These checks were done: - built on NixOS - ran ‘/nix/store/gaym98lkncirfi09qwv0g3n6jgnknzm8-ncmpcpp-0.8.2/bin/ncmpcpp --help’ got 0 exit code - found 0.8.2 with grep in /nix/store/gaym98lkncirfi09qwv0g3n6jgnknzm8-ncmpcpp-0.8.2 - directory tree listing: https://gist.github.com/bfab0afd2242f12a3754d3267a41b66f
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
|
|
, 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}";
|
|
version = "0.8.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://ncmpcpp.rybczak.net/stable/${name}.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";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
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 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|