From b1ba53e50d9f93f1114e146563d727e25e13ee9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?=
 <viric@vicerveza.homeunix.net>
Date: Wed, 4 Jan 2012 22:12:43 +0000
Subject: [PATCH] Adding vimprobable2. Patch by Alexander Forenmy.

svn path=/nixpkgs/trunk/; revision=31303
---
 .../browsers/vimprobable2/default.nix         | 35 +++++++++++++++++++
 pkgs/top-level/all-packages.nix               |  6 ++++
 2 files changed, 41 insertions(+)
 create mode 100644 pkgs/applications/networking/browsers/vimprobable2/default.nix

diff --git a/pkgs/applications/networking/browsers/vimprobable2/default.nix b/pkgs/applications/networking/browsers/vimprobable2/default.nix
new file mode 100644
index 000000000000..924139dc32e8
--- /dev/null
+++ b/pkgs/applications/networking/browsers/vimprobable2/default.nix
@@ -0,0 +1,35 @@
+{stdenv, fetchurl, makeWrapper, perl, pkgconfig, webkit, gtk, libX11, libsoup,
+glib_networking}:
+
+stdenv.mkDerivation {
+  name = "vimprobable2-0.9.11.2";
+  src = fetchurl {
+    url = "mirror://sourceforge/vimprobable/vimprobable2_0.9.11.2.tar.bz2";
+    sha256 = "017qwhndchmpsn2g38v85rjx00fss69aa1nmgj3v85k5zskv7z65";
+  };
+  buildInputs = [ makeWrapper perl pkgconfig libX11 libsoup webkit gtk ];
+  installPhase = ''
+    make PREFIX=/ DESTDIR=$out install
+    wrapProgram "$out/bin/vimprobable2" --prefix GIO_EXTRA_MODULES : \
+      ${glib_networking}/lib/gio/modules
+  '';
+
+  meta = {
+    description = ''
+      Vimprobable is a web browser that behaves like the Vimperator plugin
+      available for Mozilla Firefox
+    '';
+    longDescription = ''
+      Vimprobable is a web browser that behaves like the Vimperator plugin
+      available for Mozilla Firefox. It is based on the WebKit engine (using
+      GTK bindings). The goal of Vimprobable is to build a completely
+      keyboard-driven, efficient and pleasurable browsing-experience. Its
+      featureset might be considered "minimalistic", but not as minimalistic as
+      being completely featureless. 
+    '';
+    homepage = "http://sourceforge.net/apps/trac/vimprobable";
+    license = "MIT";
+    maintainers = ["Alexander Foremny <alexanderforemny@googlemail.com>"];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a0d8b17df968..4c0dece1a055 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8627,6 +8627,12 @@ let
 
   vice = callPackage ../misc/emulators/vice { };
 
+  vimprobable2 = callPackage ../applications/networking/browsers/vimprobable2 {
+    inherit stdenv fetchurl makeWrapper perl pkgconfig webkit gtk;
+    inherit (xlibs) libX11;
+    inherit (gnome) libsoup glib_networking;
+  };
+
   VisualBoyAdvance = callPackage ../misc/emulators/VisualBoyAdvance { };
 
   # Wine cannot be built in 64-bit; use a 32-bit build instead.