2017-04-02 19:50:28 +02:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, pkgconfig, wrapGAppsHook
|
2018-02-25 03:23:58 +01:00
|
|
|
, glib, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
|
2017-04-02 19:50:28 +02:00
|
|
|
, patches ? null
|
|
|
|
}:
|
2011-08-11 18:33:41 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "surf-${version}";
|
2017-04-02 19:50:28 +02:00
|
|
|
version = "2.0";
|
2011-08-11 18:33:41 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-07 23:38:38 +01:00
|
|
|
url = "https://dl.suckless.org/surf/surf-${version}.tar.gz";
|
2017-04-02 19:50:28 +02:00
|
|
|
sha256 = "07cmajyafljigy10d21kkyvv5jf3hxkx06pz3rwwk3y3c9x4rvps";
|
2011-08-11 18:33:41 +02:00
|
|
|
};
|
|
|
|
|
2017-04-02 19:50:28 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
|
2018-02-25 03:23:58 +01:00
|
|
|
buildInputs = [ glib glib-networking gsettings-desktop-schemas gtk libsoup webkitgtk ];
|
2011-08-11 18:33:41 +02:00
|
|
|
|
|
|
|
inherit patches;
|
|
|
|
|
2016-01-03 13:34:45 +01:00
|
|
|
installFlags = [ "PREFIX=/" "DESTDIR=$(out)" ];
|
2014-04-05 15:51:42 +02:00
|
|
|
|
2017-04-02 19:50:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple web browser based on WebKit/GTK+";
|
2013-10-06 11:49:53 +02:00
|
|
|
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.
|
2017-04-02 19:50:28 +02:00
|
|
|
'';
|
2017-11-07 23:38:38 +01:00
|
|
|
homepage = https://surf.suckless.org;
|
2017-04-02 19:50:28 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = webkitgtk.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ joachifm ];
|
2011-08-11 18:33:41 +02:00
|
|
|
};
|
|
|
|
}
|