2020-10-22 23:51:17 +00:00
|
|
|
{ lib, stdenv, fetchgit
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, wrapGAppsHook
|
2020-10-22 23:51:17 +00:00
|
|
|
, glib, gcr, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
|
2019-10-06 05:58:48 +00:00
|
|
|
, xorg, dmenu, findutils, gnused, coreutils
|
2017-04-02 17:50:28 +00:00
|
|
|
, patches ? null
|
|
|
|
}:
|
2011-08-11 16:33:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "surf";
|
2021-05-09 13:27:55 +00:00
|
|
|
version = "2.1";
|
2011-08-11 16:33:41 +00:00
|
|
|
|
2021-05-09 13:27:55 +00:00
|
|
|
# tarball is missing file common.h
|
2020-10-22 23:51:17 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.suckless.org/surf";
|
2021-05-09 13:27:55 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1v926hiayddylq79n8l7dy51bm0dsa9n18nx9bkhg666cx973x4z";
|
2011-08-11 16:33:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-10-22 23:51:17 +00:00
|
|
|
buildInputs = [ glib gcr glib-networking gsettings-desktop-schemas gtk libsoup webkitgtk ];
|
2011-08-11 16:33:41 +00:00
|
|
|
|
|
|
|
inherit patches;
|
|
|
|
|
2018-12-21 21:21:04 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2014-04-05 13:51:42 +00:00
|
|
|
|
2019-10-06 05:58:48 +00:00
|
|
|
# Add run-time dependencies to PATH. Append them to PATH so the user can
|
|
|
|
# override the dependencies with their own PATH.
|
|
|
|
preFixup = let
|
|
|
|
depsPath = lib.makeBinPath [ xorg.xprop dmenu findutils gnused coreutils ];
|
|
|
|
in ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--suffix PATH : ${depsPath}
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-22 23:51:17 +00:00
|
|
|
description = "A simple web browser based on WebKitGTK";
|
2013-10-06 09:49:53 +00:00
|
|
|
longDescription = ''
|
2020-10-22 23:51:17 +00:00
|
|
|
surf is a simple web browser based on WebKitGTK. It is able to display
|
2013-10-06 09:49:53 +00:00
|
|
|
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 17:50:28 +00:00
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://surf.suckless.org";
|
2017-04-02 17:50:28 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = webkitgtk.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ joachifm ];
|
2011-08-11 16:33:41 +00:00
|
|
|
};
|
|
|
|
}
|