nixpkgs/pkgs/applications/networking/browsers/surf/default.nix

49 lines
1.5 KiB
Nix
Raw Normal View History

2020-10-23 00:51:17 +01:00
{ lib, stdenv, fetchgit
, pkg-config, wrapGAppsHook
2020-10-23 00:51:17 +01:00
, glib, gcr, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
, xorg, dmenu, findutils, gnused, coreutils
, patches ? null
}:
stdenv.mkDerivation rec {
pname = "surf";
2020-10-23 00:51:17 +01:00
version = "unstable-2019-02-08";
2020-10-23 00:51:17 +01:00
src = fetchgit {
url = "git://git.suckless.org/surf";
rev = "d068a3878b6b9f2841a49cd7948cdf9d62b55585";
sha256 = "0pjsv2q8c74sdmqsalym8wa2lv55lj4pd36miam5wd12769xw68m";
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
2020-10-23 00:51:17 +01:00
buildInputs = [ glib gcr glib-networking gsettings-desktop-schemas gtk libsoup webkitgtk ];
inherit patches;
2018-12-21 21:21:04 +00:00
installFlags = [ "PREFIX=$(out)" ];
# 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}
)
'';
meta = with lib; {
2020-10-23 00:51:17 +01:00
description = "A simple web browser based on WebKitGTK";
longDescription = ''
2020-10-23 00:51:17 +01:00
surf is a simple web browser based on WebKitGTK. 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 = "https://surf.suckless.org";
license = licenses.mit;
platforms = webkitgtk.meta.platforms;
maintainers = with maintainers; [ joachifm ];
};
}