lynx: use full `version`, ‘official’ URI & lib.optionals

This commit is contained in:
Tobias Geerinckx-Rice 2016-03-18 05:28:19 +01:00
parent 067f64469f
commit 87ca9b9629
1 changed files with 7 additions and 6 deletions

View File

@ -4,22 +4,23 @@
assert sslSupport -> openssl != null; assert sslSupport -> openssl != null;
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "lynx-2.8.8"; name = "lynx-${version}";
version = "2.8.8rel.2";
src = fetchurl { src = fetchurl {
url = http://lynx.isc.org/lynx2.8.8/lynx2.8.8.tar.bz2; url = "http://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2";
sha256 = "1rxysl08acqll5b87368f04kckl8sggy1qhnq59gsxyny1ffg039"; sha256 = "1rxysl08acqll5b87368f04kckl8sggy1qhnq59gsxyny1ffg039";
}; };
configureFlags = if sslSupport then "--with-ssl=${openssl}" else ""; configureFlags = []
++ stdenv.lib.optionals sslSupport [ "--with-ssl=${openssl}" ];
buildInputs = [ ncurses gzip ]; buildInputs = [ ncurses gzip ];
nativeBuildInputs = [ ncurses ]; nativeBuildInputs = [ ncurses ];
crossAttrs = { crossAttrs = {
configureFlags = "--enable-widec" + configureFlags = configureFlags ++ [ "--enable-widec" ];
(if sslSupport then " --with-ssl" else "");
}; };
meta = { meta = {