3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/vimb/default.nix

43 lines
1.4 KiB
Nix
Raw Normal View History

2014-02-12 18:42:39 +00:00
{ stdenv, fetchurl, pkgconfig, libsoup, webkit, gtk, glib_networking
, gsettings_desktop_schemas, makeWrapper
}:
stdenv.mkDerivation rec {
name = "vimb-${version}";
2014-08-24 00:50:31 +01:00
version = "2.7";
2014-02-12 18:42:39 +00:00
src = fetchurl {
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
2014-08-24 00:50:31 +01:00
sha256 = "05i5p9827rgga4h27qy3qh4ps8aynkcr55j681ddhn16ci3dk8zr";
2014-02-12 18:42:39 +00:00
};
# Nixos default ca bundle
patchPhase = ''
2014-06-10 13:40:16 +01:00
sed -i s,/etc/ssl/certs/ca-certificates.crt,/etc/ssl/certs/ca-bundle.crt, src/setting.c
2014-02-12 18:42:39 +00:00
'';
buildInputs = [ makeWrapper gtk libsoup pkgconfig webkit gsettings_desktop_schemas ];
2014-02-12 18:42:39 +00:00
makeFlags = [ "PREFIX=$(out)" ];
preFixup = ''
2014-02-12 18:42:39 +00:00
wrapProgram "$out/bin/vimb" \
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
--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;
};
}