8ec3bce8f8
This package is deprecated and superseeded by links2 which also provides the links binary this maintaining backwards-compatibility. Debian removed links back in 2008: https://packages.qa.debian.org/l/links.html Fixes #12623.
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ 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 {
|
|
version = "2.12";
|
|
name = "links2-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
|
sha256 = "0knq15yrp60s4jh92aacw8yfc2pcv3bqsw7dba7h5s6ivq8ihhcq";
|
|
};
|
|
|
|
buildInputs =
|
|
[ libev librsvg libpng libjpeg libtiff gpm openssl xz bzip2 zlib ]
|
|
++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ]
|
|
++ stdenv.lib.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";
|
|
|
|
crossAttrs = {
|
|
preConfigure = ''
|
|
export CC=$crossConfig-gcc
|
|
'';
|
|
};
|
|
|
|
meta = {
|
|
homepage = http://links.twibright.com/;
|
|
description = "A small browser with some graphics support";
|
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|