2014-02-12 19:42:39 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libsoup, webkit, gtk, glib_networking
|
|
|
|
, gsettings_desktop_schemas, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vimb-${version}";
|
2015-02-13 15:06:46 +01:00
|
|
|
version = "2.9";
|
2014-02-12 19:42:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
|
2015-02-13 15:06:46 +01:00
|
|
|
sha256 = "0h9m5qfs09lb0dz8a79yccmm3a5rv6z8gi5pkyfh8fqkgkh2940p";
|
2014-02-12 19:42:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Nixos default ca bundle
|
|
|
|
patchPhase = ''
|
2015-02-13 15:06:46 +01:00
|
|
|
sed -i s,/etc/ssl/certs/ca-certificates.crt,/etc/ssl/certs/ca-bundle.crt, src/config.def.h
|
2014-02-12 19:42:39 +01:00
|
|
|
'';
|
|
|
|
|
2014-04-05 15:51:42 +02:00
|
|
|
buildInputs = [ makeWrapper gtk libsoup pkgconfig webkit gsettings_desktop_schemas ];
|
2014-02-12 19:42:39 +01:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2014-04-05 15:51:42 +02:00
|
|
|
preFixup = ''
|
2014-02-12 19:42:39 +01:00
|
|
|
wrapProgram "$out/bin/vimb" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2014-04-05 15:51:42 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2014-02-12 19:42:39 +01: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;
|
|
|
|
};
|
|
|
|
}
|