aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix
new file mode 100644
index 000000000000..57eb4fad76b0
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/networking/browsers/surf/default.nix
@@ -0,0 +1,48 @@
+{ lib, stdenv, fetchgit
+, pkgconfig, wrapGAppsHook
+, glib, gcr, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
+, xorg, dmenu, findutils, gnused, coreutils
+, patches ? null
+}:
+
+stdenv.mkDerivation rec {
+ pname = "surf";
+ version = "unstable-2019-02-08";
+
+ src = fetchgit {
+ url = "git://git.suckless.org/surf";
+ rev = "d068a3878b6b9f2841a49cd7948cdf9d62b55585";
+ sha256 = "0pjsv2q8c74sdmqsalym8wa2lv55lj4pd36miam5wd12769xw68m";
+ };
+
+ nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
+ buildInputs = [ glib gcr glib-networking gsettings-desktop-schemas gtk libsoup webkitgtk ];
+
+ inherit patches;
+
+ 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 stdenv.lib; {
+ description = "A simple web browser based on WebKitGTK";
+ longDescription = ''
+ 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 ];
+ };
+}