nixpkgs/pkgs/applications/networking/browsers/lynx/default.nix

30 lines
673 B
Nix
Raw Normal View History

{ stdenv, fetchurl, ncurses, gzip
, sslSupport ? true, openssl ? null
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
2014-05-22 12:57:17 +02:00
name = "lynx-2.8.8";
src = fetchurl {
2014-05-22 12:57:17 +02:00
url = http://lynx.isc.org/lynx2.8.8/lynx2.8.8.tar.bz2;
sha256 = "1rxysl08acqll5b87368f04kckl8sggy1qhnq59gsxyny1ffg039";
};
configureFlags = if sslSupport then "--with-ssl=${openssl}" else "";
buildInputs = [ ncurses gzip ];
nativeBuildInputs = [ ncurses ];
crossAttrs = {
configureFlags = "--enable-widec" +
(if sslSupport then " --with-ssl" else "");
};
meta = {
homepage = http://lynx.isc.org/;
description = "A text-mode web browser";
};
}