2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, gpm, openssl, pkg-config, libev # Misc.
|
2015-05-31 16:33:12 +00:00
|
|
|
, 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 15:39:54 +00:00
|
|
|
|
2012-02-01 22:33:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-07-31 19:14:21 +00:00
|
|
|
version = "2.27";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "links2";
|
2012-02-01 22:33:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
2022-07-31 19:14:21 +00:00
|
|
|
sha256 = "sha256-2N3L/O3nzd6Aq+sKI2NY9X+mvrK8+S4QliTpuJb567Q=";
|
2012-02-01 22:33:35 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
buildInputs = with lib;
|
2017-03-14 05:40:21 +00:00
|
|
|
[ libev librsvg libpng libjpeg libtiff openssl xz bzip2 zlib ]
|
|
|
|
++ optionals stdenv.isLinux [ gpm ]
|
|
|
|
++ optionals enableX11 [ libX11 libXau libXt ]
|
2022-10-06 16:38:53 +00:00
|
|
|
++ optionals enableDirectFB [ directfb ];
|
2012-02-01 22:33:35 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config bzip2 ];
|
2012-02-01 22:33:35 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--with-ssl" ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics"
|
|
|
|
++ lib.optional enableX11 "--with-x"
|
|
|
|
++ lib.optional enableFB "--with-fb"
|
|
|
|
++ lib.optional enableDirectFB "--with-directfb";
|
2012-02-01 22:33:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://links.twibright.com/";
|
2009-10-24 15:39:54 +00:00
|
|
|
description = "A small browser with some graphics support";
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "links";
|
2020-06-26 22:14:33 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2017-03-14 05:40:21 +00:00
|
|
|
platforms = platforms.unix;
|
2009-10-24 15:39:54 +00:00
|
|
|
};
|
|
|
|
}
|