mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
43 lines
1.4 KiB
Nix
43 lines
1.4 KiB
Nix
{ lib, stdenv, fetchurl, boost, mpd_clientlib, 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);
|
|
|
|
with lib;
|
|
stdenv.mkDerivation rec {
|
|
pname = "ncmpcpp";
|
|
version = "0.9.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://rybczak.net/ncmpcpp/stable/${pname}-${version}.tar.bz2";
|
|
sha256 = "0x35nd4v31sma8fliqdbn1nxpjyi8hv472318sfb3xbmr4wlm0fb";
|
|
};
|
|
|
|
configureFlags = [ "BOOST_LIB_SUFFIX=" ]
|
|
++ optional outputsSupport "--enable-outputs"
|
|
++ optional visualizerSupport "--enable-visualizer --with-fftw"
|
|
++ optional clockSupport "--enable-clock"
|
|
++ optional taglibSupport "--with-taglib";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
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://rybczak.net/ncmpcpp/";
|
|
changelog = "https://github.com/ncmpcpp/ncmpcpp/blob/${version}/CHANGELOG.md";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ jfrankenau koral lovek323 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|