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.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl
|
|
, gpm, openssl, pkg-config, libev # Misc.
|
|
, libpng, libjpeg, libtiff, librsvg # graphic formats
|
|
, bzip2, zlib, xz # Transfer encodings
|
|
, enableFB ? true
|
|
, enableDirectFB ? false, directfb
|
|
, enableX11 ? true, libX11, libXt, libXau # GUI support
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.21";
|
|
pname = "links2";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
|
sha256 = "0qqdcghsdqm7l6kyi0k752ws3ak5crw85pqkcb11wy67j62yspi8";
|
|
};
|
|
|
|
buildInputs = with lib;
|
|
[ libev librsvg libpng libjpeg libtiff openssl xz bzip2 zlib ]
|
|
++ optionals stdenv.isLinux [ gpm ]
|
|
++ optionals enableX11 [ libX11 libXau libXt ]
|
|
++ optional enableDirectFB [ directfb ];
|
|
|
|
nativeBuildInputs = [ pkg-config bzip2 ];
|
|
|
|
configureFlags = [ "--with-ssl" ]
|
|
++ lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics"
|
|
++ lib.optional enableX11 "--with-x"
|
|
++ lib.optional enableFB "--with-fb"
|
|
++ lib.optional enableDirectFB "--with-directfb";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://links.twibright.com/";
|
|
description = "A small browser with some graphics support";
|
|
maintainers = with maintainers; [ raskin ];
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|