13 stdenv.mkDerivation rec {
15 version = "2.9.0dev.12";
19 "ftp://ftp.invisible-island.net/lynx/tarballs/lynx${version}.tar.bz2"
20 "https://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2"
22 hash = "sha256-pkVbFZ0Ad22OwQUShcly3B8MVS0FcaDP8Coj7BRu6OU=";
25 enableParallelBuilding = true;
27 hardeningEnable = [ "pie" ];
30 "--enable-default-colors"
33 ] ++ lib.optional sslSupport "--with-ssl";
35 depsBuildBuild = [ buildPackages.stdenv.cc ];
36 nativeBuildInputs = [ nukeReferences ]
37 ++ lib.optional sslSupport pkg-config;
39 buildInputs = [ ncurses gzip ]
40 ++ lib.optional sslSupport openssl;
42 # cfg_defs.h captures lots of references to build-only dependencies, derived
49 env = lib.optionalAttrs stdenv.cc.isGNU {
50 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
54 description = "Text-mode web browser";
55 homepage = "https://lynx.invisible-island.net/";
58 license = licenses.gpl2Plus;
59 platforms = platforms.unix;