From 46fd82a793aae484e8af1f8425f2719f4e911e65 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Wed, 2 Oct 2013 15:13:40 +0200 Subject: [PATCH] Added dwb, a lightweight webbrowser written in C based on webkit and gtk. --- .../networking/browsers/dwb/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/networking/browsers/dwb/default.nix diff --git a/pkgs/applications/networking/browsers/dwb/default.nix b/pkgs/applications/networking/browsers/dwb/default.nix new file mode 100644 index 000000000000..dd0cbc4eb4e1 --- /dev/null +++ b/pkgs/applications/networking/browsers/dwb/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkit, gtk3, gnutls, json_c, + m4, glib_networking, gsettings_desktop_schemas }: + +stdenv.mkDerivation { + name = "dwb-0.1"; + + src = fetchgit { + url = "https://bitbucket.org/portix/dwb.git"; + rev = "4a4c3adb8fbc680a0a2b8c9d3d3a4105c07c2514"; + sha256 = "93e8f2c82609447d54a3c139c153cc66d37d3c6aa8922cd09717caa95fd8b1d5"; + }; + + buildInputs = [ pkgconfig makeWrapper libsoup webkit gtk3 gnutls json_c m4 ]; + + # There are Xlib and gtk warnings therefore I have set Wno-error + preBuild='' + makeFlagsArray=(CPPFLAGS="-Wno-error" GTK=3 PREFIX=$out); + ''; + + postInstall='' + wrapProgram "$out/bin/dwb" \ + --prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \ + --prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share:$out/share" + ''; + + meta = { + homepage = http://portix.bitbucket.org/dwb/; + description = "A lightweight web browser based on the webkit web browser engine and the gtk toolkit"; + platforms = with stdenv.lib.platforms; all; + maintainers = with stdenv.lib.maintainers; [pSub]; + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d28109e7a271..1a377dc25bfd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7462,6 +7462,8 @@ let dvswitch = callPackage ../applications/video/dvswitch { }; + dwb = callPackage ../applications/networking/browsers/dwb { }; + dwm = callPackage ../applications/window-managers/dwm { patches = config.dwm.patches or []; };