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 {
|
2016-01-31 10:43:02 +00:00
|
|
|
version = "2.12";
|
2012-02-01 22:33:35 +00:00
|
|
|
name = "links2-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
2016-01-31 10:43:02 +00:00
|
|
|
sha256 = "0knq15yrp60s4jh92aacw8yfc2pcv3bqsw7dba7h5s6ivq8ihhcq";
|
2012-02-01 22:33:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2015-05-31 17:33:12 +01:00
|
|
|
[ libev librsvg libpng libjpeg libtiff gpm openssl xz bzip2 zlib ]
|
2012-02-01 22:33:35 +00:00
|
|
|
++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ]
|
|
|
|
++ stdenv.lib.optional enableDirectFB [ directfb ];
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
crossAttrs = {
|
|
|
|
preConfigure = ''
|
|
|
|
export CC=$crossConfig-gcc
|
|
|
|
'';
|
|
|
|
};
|
2009-10-24 16:39:54 +01:00
|
|
|
|
|
|
|
meta = {
|
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";
|
2012-02-01 22:33:35 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-10-24 16:39:54 +01:00
|
|
|
};
|
|
|
|
}
|