nixpkgs/pkgs/applications/networking/browsers/links2/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl
, gpm, openssl, pkgconfig, 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 {
2020-08-14 19:26:08 +01:00
version = "2.21";
pname = "links2";
src = fetchurl {
url = "${meta.homepage}/download/links-${version}.tar.bz2";
2020-08-14 19:26:08 +01:00
sha256 = "0qqdcghsdqm7l6kyi0k752ws3ak5crw85pqkcb11wy67j62yspi8";
};
2017-03-14 05:40:21 +00:00
buildInputs = with stdenv.lib;
[ libev librsvg libpng libjpeg libtiff openssl xz bzip2 zlib ]
++ optionals stdenv.isLinux [ gpm ]
++ optionals enableX11 [ libX11 libXau libXt ]
++ optional enableDirectFB [ directfb ];
nativeBuildInputs = [ pkgconfig bzip2 ];
configureFlags = [ "--with-ssl" ]
++ stdenv.lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics"
++ stdenv.lib.optional enableX11 "--with-x"
++ stdenv.lib.optional enableFB "--with-fb"
++ stdenv.lib.optional enableDirectFB "--with-directfb";
2017-03-05 01:52:28 +00:00
meta = with stdenv.lib; {
homepage = "http://links.twibright.com/";
description = "A small browser with some graphics support";
maintainers = with maintainers; [ raskin ];
2020-06-26 23:14:33 +01:00
license = licenses.gpl2Plus;
2017-03-14 05:40:21 +00:00
platforms = platforms.unix;
};
}