nixpkgs/pkgs/applications/networking/browsers/elinks/default.nix
Ludovic Courtès 270ea3beec Elinks: Fix libgc initialization.
svn path=/nixpkgs/trunk/; revision=27046
2011-04-28 21:22:24 +00:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchurl, python, perl, ncurses, x11, bzip2, zlib, openssl
, spidermonkey, guile, gpm }:
stdenv.mkDerivation rec {
name = "elinks-0.12pre5";
src = fetchurl {
url = http://elinks.or.cz/download/elinks-0.12pre5.tar.bz2;
sha256 = "1li4vlbq8wvnigxlkzb15490y90jg6y9yzzrqpqcz2h965w5869d";
};
patches = [ ./gc-init.patch ];
buildInputs = [ python perl ncurses x11 bzip2 zlib openssl spidermonkey guile gpm ];
configureFlags =
''
--enable-finger --enable-html-highlight --with-guile
--with-perl --with-python --enable-gopher --enable-cgi --enable-bittorrent
--enable-nntp --with-openssl=${openssl}
'';
crossAttrs = {
propagatedBuildInputs = [ ncurses.hostDrv zlib.hostDrv openssl.hostDrv ];
configureFlags = ''
--enable-finger --enable-html-highlight
--enable-gopher --enable-cgi --enable-bittorrent --enable-nntp
--with-openssl=${openssl.hostDrv}
--with-bzip2=${bzip2.hostDrv}
'';
};
meta = {
description = "Full-featured text-mode web browser";
homepage = http://elinks.or.cz;
};
}