@@ -1,42 +1,36 @@
1−{stdenv, fetchurl, makeWrapper, gtk2, webkit, pkgconfig, glib, glib_networking, libsoup, gsettings_desktop_schemas, patches ? null}:
1+{ stdenv, fetchurl
2+, pkgconfig, wrapGAppsHook
3+, glib, glib_networking, gsettings_desktop_schemas, gtk, libsoup, webkitgtk
4+, patches ? null
5+}:
26
37stdenv.mkDerivation rec {
48 name = "surf-${version}";
5− version="0.7";
9+ version = "2.0";
610
711 src = fetchurl {
812 url = "http://dl.suckless.org/surf/surf-${version}.tar.gz";
9− sha256 = "0jj93izd8fizxfa6ln9w1h9bwki81sz5dhskh5x1rl34zd38aq4m";
13+ sha256 = "07cmajyafljigy10d21kkyvv5jf3hxkx06pz3rwwk3y3c9x4rvps";
1014 };
1115
12− buildInputs = [ gtk2 makeWrapper webkit gsettings_desktop_schemas pkgconfig glib libsoup ];
16+ nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
17+ buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk libsoup webkitgtk ];
1318
14− # Allow users set their own list of patches
1519 inherit patches;
1620
17− buildPhase = " make ";
18−
19− # `-lX11' to make sure libX11's store path is in the RPATH
20− NIX_LDFLAGS = "-lX11";
21− preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
2221 installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];
2322
24− preFixup = ''
25− wrapProgram "$out/bin/surf" \
26− --prefix GIO_EXTRA_MODULES : ${glib_networking.out}/lib/gio/modules \
27− --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
28− '';
29−
30− meta = {
31− description = "Simple web browser";
23+ meta = with stdenv.lib; {
24+ description = "A simple web browser based on WebKit/GTK+";
3225 longDescription = ''
3326 Surf is a simple web browser based on WebKit/GTK+. It is able to display
3427 websites and follow links. It supports the XEmbed protocol which makes it
3528 possible to embed it in another application. Furthermore, one can point
3629 surf to another URI by setting its XProperties.
37− '';
30+ '';
3831 homepage = http://surf.suckless.org;
39− license = stdenv.lib.licenses.mit;
40− platforms = stdenv.lib.platforms.linux;
32+ license = licenses.mit;
33+ platforms = webkitgtk.meta.platforms;
34+ maintainers = with maintainers; [ joachifm ];
4135 };
4236}