@@ -1,10 +1,10 @@
1−{ stdenv, fetchurl, fetchpatch
1+{ stdenv, fetchgit, fetchpatch
22, ncurses, boehmgc, gettext, zlib
33, sslSupport ? true, openssl ? null
44, graphicsSupport ? true, imlib2 ? null
55, x11Support ? graphicsSupport, libX11 ? null
66, mouseSupport ? !stdenv.isDarwin, gpm-ncurses ? null
7−, perl, man
7+, perl, man, pkgconfig
88}:
99
1010assert sslSupport -> openssl != null;
@@ -15,11 +15,12 @@ assert mouseSupport -> gpm-ncurses != null;
1515with stdenv.lib;
1616
1717stdenv.mkDerivation rec {
18− name = "w3m-0.5.3";
18+ name = "w3m-0.5.3-2015-12-20";
1919
20− src = fetchurl {
21− url = "mirror://sourceforge/w3m/${name}.tar.gz";
22− sha256 = "1qx9f0kprf92r1wxl3sacykla0g04qsi0idypzz24b7xy9ix5579";
20+ src = fetchgit {
21+ url = "git://anonscm.debian.org/collab-maint/w3m.git";
22+ rev = "e0b6e022810271bd0efcd655006389ee3879e94d";
23+ sha256 = "1vahm3719hb0m20nc8k88165z35f8b15qasa0whhk78r12bls1q6";
2324 };
2425
2526 NIX_LDFLAGS = optionalString stdenv.isSunOS "-lsocket -lnsl";
@@ -29,44 +30,17 @@ stdenv.mkDerivation rec {
2930 PERL = "${perl}/bin/perl";
3031 MAN = "${man}/bin/man";
3132
32− # the Arch patches were pulled from:
33− # https://aur.archlinux.org/cgit/aur.git/?h=w3m-mouse
3433 patches = [
3534 ./RAND_egd.libressl.patch
36− (fetchpatch {
37− name = "file_handle.patch";
38− url = "https://aur.archlinux.org/cgit/aur.git/plain/file_handle.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
39− sha256 = "0kkqm68ig9d658kf1iwa1dwcf651f6dy2j98gplcks1mn3bdlak4";
40− })
41− (fetchpatch {
42− name = "form_unknown.patch";
43− url = "https://aur.archlinux.org/cgit/aur.git/plain/form_unknown.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
44− sha256 = "1mbfclid3bihb1xv7sxcahprn3slzd6ga8rjzlq4rbq80bl053fw";
45− })
46− (fetchpatch {
47− name = "gc72.patch";
48− url = "https://aur.archlinux.org/cgit/aur.git/plain/gc72.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
49− sha256 = "1n6anaw17by0s6rn25bwkgj2mck7ffspizpwbijvx1ynk451459a";
50− })
5135 (fetchpatch {
5236 name = "https.patch";
5337 url = "https://aur.archlinux.org/cgit/aur.git/plain/https.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
5438 sha256 = "08skvaha1hjyapsh8zw5dgfy433mw2hk7qy9yy9avn8rjqj7kjxk";
5539 })
56− (fetchpatch {
57− name = "perl.patch";
58− url = "https://aur.archlinux.org/cgit/aur.git/plain/perl.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
59− sha256 = "15cq7cwh0d2v64i8by44rgxw48156sgh872921hxrqdakr95p3gy";
60− })
61− (fetchpatch {
62− name = "w3m_rgba.patch";
63− url = "https://aur.archlinux.org/cgit/aur.git/plain/w3m_rgba.patch?h=w3m-mouse&id=5b5f0fbb59f674575e87dd368fed834641c35f03";
64− sha256 = "1dhp1p6z621ayyl9zip9w35x2cxyhhj72jv5dvf0zp4rk6cjm781";
65− })
6640 ] ++ optional (graphicsSupport && !x11Support) [ ./no-x11.patch ]
6741 ++ optional stdenv.isCygwin ./cygwin.patch;
6842
69− buildInputs = [ncurses boehmgc gettext zlib]
43+ buildInputs = [ pkgconfig ncurses boehmgc gettext zlib ]
7044 ++ optional sslSupport openssl
7145 ++ optional mouseSupport gpm-ncurses
7246 ++ optional graphicsSupport imlib2