2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libsoup, webkit, gtk2, glib-networking
|
|
|
|
, gsettings-desktop-schemas, makeWrapper
|
2014-02-12 18:42:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vimb-${version}";
|
2018-01-16 13:49:03 +00:00
|
|
|
version = "3.1.0";
|
2014-02-12 18:42:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
|
2018-01-16 13:49:03 +00:00
|
|
|
sha256 = "1gws028c2v1zh6r142hmjvi2m447lwqqh65m6z3dzcar2yw35z3f";
|
2014-02-12 18:42:39 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ makeWrapper gtk2 libsoup webkit gsettings-desktop-schemas ];
|
2014-02-12 18:42:39 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2014-04-05 14:51:42 +01:00
|
|
|
preFixup = ''
|
2014-02-12 18:42:39 +00:00
|
|
|
wrapProgram "$out/bin/vimb" \
|
2018-02-25 02:23:58 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules" \
|
2014-04-05 14:51:42 +01: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.
|
|
|
|
'';
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://fanglingsu.github.io/vimb/;
|
2014-02-12 18:42:39 +00:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|