@@ -0,0 +1,42 @@
1+{ stdenv, fetchzip
2+, pkgconfig, wrapGAppsHook
3+, glib, glib_networking, gsettings_desktop_schemas, gtk2, libsoup, webkitgtk
4+, patches ? null
5+}:
6+
7+let
8+ # http://git.suckless.org/surf/log/?h=surf-webkit2
9+ rev = "37e43501d80710533f3ec0bd61ee84916c8524a4";
10+ sha256 = "1q388rzm4irpaam4z8xycbyh5dgkjlar5jn1iw7zfls1pbpzr5br";
11+ date = "2017-03-06";
12+in
13+
14+stdenv.mkDerivation rec {
15+ name = "surf-webkit2-${date}";
16+
17+ src = fetchzip {
18+ url = "http://git.suckless.org/surf/snapshot/surf-${rev}.tar.gz";
19+ inherit sha256;
20+ };
21+
22+ nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
23+ buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk2 libsoup webkitgtk ];
24+
25+ inherit patches;
26+
27+ installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];
28+
29+ meta = with stdenv.lib; {
30+ description = "A simple web browser based on WebKit/GTK+";
31+ longDescription = ''
32+ Surf is a simple web browser based on WebKit/GTK+. It is able to display
33+ websites and follow links. It supports the XEmbed protocol which makes it
34+ possible to embed it in another application. Furthermore, one can point
35+ surf to another URI by setting its XProperties.
36+ '';
37+ homepage = http://surf.suckless.org;
38+ license = licenses.mit;
39+ platforms = platforms.all;
40+ maintainers = with maintainers; [ joachifm ];
41+ };
42+}