···11-{ stdenv, fetchzip
22-, pkgconfig, wrapGAppsHook
33-, glib, glib_networking, gsettings_desktop_schemas, gtk2, libsoup, webkitgtk
44-, patches ? null
55-}:
66-77-let
88- # http://git.suckless.org/surf/log/?h=surf-webkit2
99- rev = "7e02344a615a61246ccce1c7f770e88fbd57756e";
1010- sha256 = "11f93fbjhl7nfgwkcc45lcm3x1wk5h87ap8fbw9w855021i57pp6";
1111- date = "2017-03-22";
1212-in
1313-1414-stdenv.mkDerivation rec {
1515- name = "surf-webkit2-${date}";
1616-1717- src = fetchzip {
1818- url = "http://git.suckless.org/surf/snapshot/surf-${rev}.tar.gz";
1919- inherit sha256;
2020- };
2121-2222- nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
2323- buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk2 libsoup webkitgtk ];
2424-2525- inherit patches;
2626-2727- installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];
2828-2929- meta = with stdenv.lib; {
3030- description = "A simple web browser based on WebKit/GTK+";
3131- longDescription = ''
3232- Surf is a simple web browser based on WebKit/GTK+. It is able to display
3333- websites and follow links. It supports the XEmbed protocol which makes it
3434- possible to embed it in another application. Furthermore, one can point
3535- surf to another URI by setting its XProperties.
3636- '';
3737- homepage = http://surf.suckless.org;
3838- license = licenses.mit;
3939- platforms = platforms.all;
4040- maintainers = with maintainers; [ joachifm ];
4141- };
4242-}