2012-02-01 22:33:35 +00:00
|
|
|
{ stdenv, fetchurl
|
2015-05-31 17:33:12 +01:00
|
|
|
, gpm, openssl, pkgconfig, libev # Misc.
|
|
|
|
, libpng, libjpeg, libtiff, librsvg # graphic formats
|
2012-02-01 22:33:35 +00:00
|
|
|
, bzip2, zlib, xz # Transfer encodings
|
|
|
|
, enableFB ? true
|
|
|
|
, enableDirectFB ? false, directfb
|
|
|
|
, enableX11 ? true, libX11, libXt, libXau # GUI support
|
|
|
|
}:
|
2009-10-24 16:39:54 +01:00
|
|
|
|
2012-02-01 22:33:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-10-22 12:23:42 +01:00
|
|
|
version = "2.20.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "links2";
|
2012-02-01 22:33:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
2019-10-22 12:23:42 +01:00
|
|
|
sha256 = "097ll98ympzfx7qfdyhc52yzvsp167x5nnjs6v8ih496wv80fksb";
|
2012-02-01 22:33:35 +00:00
|
|
|
};
|
|
|
|
|
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 ];
|
2012-02-01 22:33:35 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig bzip2 ];
|
2012-02-01 22:33:35 +00:00
|
|
|
|
|
|
|
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; {
|
2012-02-01 22:33:35 +00:00
|
|
|
homepage = http://links.twibright.com/;
|
2009-10-24 16:39:54 +01:00
|
|
|
description = "A small browser with some graphics support";
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2017-03-14 05:40:21 +00:00
|
|
|
platforms = platforms.unix;
|
2009-10-24 16:39:54 +01:00
|
|
|
};
|
|
|
|
}
|