2016-09-11 21:24:51 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libsoup, webkit, gtk2, glib_networking
|
2015-07-30 23:30:15 +00:00
|
|
|
, gsettings_desktop_schemas, makeWrapper
|
2014-02-12 18:42:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vimb-${version}";
|
2016-01-07 23:57:32 +00:00
|
|
|
version = "2.11";
|
2014-02-12 18:42:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
|
2016-01-07 23:57:32 +00:00
|
|
|
sha256 = "0d9rankzgmnx5423pyfkbxy0qxw3ck2vrdjdnlhddy15wkk87i9f";
|
2014-02-12 18:42:39 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = [ makeWrapper gtk2 libsoup pkgconfig webkit gsettings_desktop_schemas ];
|
2014-02-12 18:42:39 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2014-04-05 13:51:42 +00:00
|
|
|
preFixup = ''
|
2014-02-12 18:42:39 +00:00
|
|
|
wrapProgram "$out/bin/vimb" \
|
2015-10-11 14:06:34 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules" \
|
2014-04-05 13:51:42 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2014-02-12 18:42:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Vim-like browser";
|
|
|
|
longDescription = ''
|
|
|
|
A fast and lightweight vim like web browser based on the webkit web
|
|
|
|
browser engine and the GTK toolkit. Vimb is modal like the great vim
|
|
|
|
editor and also easily configurable during runtime. Vimb is mostly
|
|
|
|
keyboard driven and does not detract you from your daily work.
|
|
|
|
'';
|
|
|
|
homepage = "http://fanglingsu.github.io/vimb/";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|