mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
New package: The vimb web browser
This commit is contained in:
parent
83ca1bec30
commit
bcb7925562
42
pkgs/applications/networking/browsers/vimb/default.nix
Normal file
42
pkgs/applications/networking/browsers/vimb/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libsoup, webkit, gtk, glib_networking
|
||||
, gsettings_desktop_schemas, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vimb-${version}";
|
||||
version = "2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/fanglingsu/vimb/archive/${version}.tar.gz";
|
||||
sha256 = "18gig6rcxv0i4a8mz3jv29zpj0323zw45jsg1ycx61a08rzag60m";
|
||||
};
|
||||
|
||||
# Nixos default ca bundle
|
||||
patchPhase = ''
|
||||
sed -i s,/etc/ssl/certs/ca-certificates.crt,/etc/ssl/certs/ca-bundle.crt, src/default.h
|
||||
'';
|
||||
|
||||
buildInputs = [ makeWrapper gtk libsoup pkgconfig webkit ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/vimb" \
|
||||
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
||||
--prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share"
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -10370,6 +10370,17 @@ let
|
||||
{ browser = vimprobable2; browserName = "vimprobable2"; desktopName = "Vimprobable2";
|
||||
};
|
||||
|
||||
vimb = callPackage ../applications/networking/browsers/vimb {
|
||||
inherit (gnome) libsoup;
|
||||
webkit = webkit_gtk2;
|
||||
};
|
||||
|
||||
vimbWrapper = wrapFirefox {
|
||||
browser = vimb;
|
||||
browserName = "vimb";
|
||||
desktopName = "Vimb";
|
||||
};
|
||||
|
||||
VisualBoyAdvance = callPackage ../misc/emulators/VisualBoyAdvance { };
|
||||
|
||||
# Wine cannot be built in 64-bit; use a 32-bit build instead.
|
||||
|
Loading…
Reference in New Issue
Block a user