diff --git a/pkgs/applications/networking/browsers/surf/webkit2.nix b/pkgs/applications/networking/browsers/surf/webkit2.nix new file mode 100644 index 000000000000..4a7b3d44e797 --- /dev/null +++ b/pkgs/applications/networking/browsers/surf/webkit2.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchzip +, pkgconfig, wrapGAppsHook +, glib, glib_networking, gsettings_desktop_schemas, gtk2, libsoup, webkitgtk +, patches ? null +}: + +let + # http://git.suckless.org/surf/log/?h=surf-webkit2 + rev = "37e43501d80710533f3ec0bd61ee84916c8524a4"; + sha256 = "1q388rzm4irpaam4z8xycbyh5dgkjlar5jn1iw7zfls1pbpzr5br"; + date = "2017-03-06"; +in + +stdenv.mkDerivation rec { + name = "surf-webkit2-${date}"; + + src = fetchzip { + url = "http://git.suckless.org/surf/snapshot/surf-${rev}.tar.gz"; + inherit sha256; + }; + + nativeBuildInputs = [ pkgconfig wrapGAppsHook ]; + buildInputs = [ glib glib_networking gsettings_desktop_schemas gtk2 libsoup webkitgtk ]; + + inherit patches; + + installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ]; + + meta = with stdenv.lib; { + description = "A simple web browser based on WebKit/GTK+"; + longDescription = '' + Surf is a simple web browser based on WebKit/GTK+. It is able to display + websites and follow links. It supports the XEmbed protocol which makes it + possible to embed it in another application. Furthermore, one can point + surf to another URI by setting its XProperties. + ''; + homepage = http://surf.suckless.org; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ joachifm ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f7a496cd0f0..1d149677eb57 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15515,6 +15515,8 @@ with pkgs; webkit = webkitgtk2; }; + surf-webkit2 = callPackage ../applications/networking/browsers/surf/webkit2.nix { }; + swh_lv2 = callPackage ../applications/audio/swh-lv2 { }; sylpheed = callPackage ../applications/networking/mailreaders/sylpheed { };