mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
32 lines
773 B
Nix
32 lines
773 B
Nix
{ stdenv, fetchurl, ncurses, gzip
|
|
, sslSupport ? true, openssl ? null
|
|
}:
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lynx-${version}";
|
|
version = "2.8.8rel.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2";
|
|
sha256 = "1rxysl08acqll5b87368f04kckl8sggy1qhnq59gsxyny1ffg039";
|
|
};
|
|
|
|
configureFlags = []
|
|
++ stdenv.lib.optionals sslSupport [ "--with-ssl=${openssl.dev}" ];
|
|
|
|
buildInputs = [ ncurses gzip ];
|
|
nativeBuildInputs = [ ncurses ];
|
|
|
|
crossAttrs = {
|
|
configureFlags = configureFlags ++ [ "--enable-widec" ];
|
|
};
|
|
|
|
meta = {
|
|
homepage = http://lynx.isc.org/;
|
|
description = "A text-mode web browser";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|