nixpkgs/pkgs/applications/networking/browsers/lynx/default.nix
Shea Levy 076ff2eede lynx: Actually provide ssl support when requested
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-01-13 20:16:27 -05:00

30 lines
673 B
Nix

{ stdenv, fetchurl, ncurses, gzip
, sslSupport ? true, openssl ? null
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "lynx-2.8.7";
src = fetchurl {
url = http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.bz2;
sha256 = "1baxwpdvak6nalr943g22z67r1d3fbibbkqvkvvar9xlvrs9gv20";
};
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";
};
}