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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.7 KiB
Nix
Raw Normal View History

2020-10-22 23:51:17 +00:00
{ lib, stdenv, fetchgit
, pkg-config, wrapGAppsHook
2020-10-22 23:51:17 +00:00
, glib, gcr, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
2022-06-29 18:08:03 +00:00
, xorg, dmenu, findutils, gnused, coreutils, gst_all_1
, patches ? null
}:
stdenv.mkDerivation rec {
pname = "surf";
2021-05-09 13:27:55 +00:00
version = "2.1";
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";
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
2022-06-29 18:08:03 +00:00
buildInputs = [
glib
gcr
glib-networking
gsettings-desktop-schemas
gtk
libsoup
webkitgtk
] ++ (with gst_all_1; [
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
inherit patches;
makeFlags = [ "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-22 23:51:17 +00:00
description = "A simple web browser based on WebKitGTK";
longDescription = ''
2020-10-22 23:51:17 +00: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 ];
};
}