nixpkgs-suyu/pkgs/applications/networking/browsers/lynx/default.nix
2017-02-23 07:32:55 +08:00

30 lines
739 B
Nix

{ stdenv, fetchurl, ncurses, gzip
, sslSupport ? true, openssl ? null
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation rec {
name = "lynx-${version}";
version = "2.8.9dev.11";
src = fetchurl {
url = "http://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2";
sha256 = "1cqm1i7d209brkrpzaqqf2x951ra3l67dw8x9yg10vz7rpr9441a";
};
configureFlags = []
++ stdenv.lib.optionals sslSupport [ "--with-ssl=${openssl.dev}" ];
buildInputs = [ ncurses gzip ];
crossAttrs = {
configureFlags = configureFlags ++ [ "--enable-widec" ];
};
meta = with stdenv.lib; {
homepage = http://lynx.isc.org/;
description = "A text-mode web browser";
platforms = platforms.unix;
};
}