lynx: use full `version`, ‘official’ URI & lib.optionals
This commit is contained in:
parent
067f64469f
commit
87ca9b9629
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue