nixpkgs/pkgs/applications/networking/browsers/dwb/default.nix

35 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkitgtk2, gtk2, gnutls
, json_c, m4, glib_networking, gsettings_desktop_schemas, dconf }:
stdenv.mkDerivation {
2016-04-15 21:26:17 +01:00
name = "dwb-2016-03-21";
src = fetchgit {
2016-04-15 21:26:17 +01:00
url = "https://bitbucket.org/portix/dwb";
rev = "7fb82bc1db36a5d1d2436088c9b58054d2c51f96";
sha256 = "1wg7pslcx7z4fw595a3nbnygxy2bwfj0h377i48mxhddvl3wzzbq";
};
buildInputs = [ pkgconfig makeWrapper gsettings_desktop_schemas libsoup
webkitgtk2 gtk2 gnutls json_c m4 ];
# There are Xlib and gtk warnings therefore I have set Wno-error
makeFlags = ''PREFIX=$(out) GTK=2 CPPFLAGS="-Wno-error"'';
preFixup=''
wrapProgram "$out/bin/dwb" \
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules:${dconf}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
wrapProgram "$out/bin/dwbem" \
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules"
'';
2014-08-14 20:01:26 +01:00
meta = with stdenv.lib; {
homepage = http://portix.bitbucket.org/dwb/;
description = "A lightweight web browser based on the webkit web browser engine and the gtk toolkit";
2014-08-14 20:01:26 +01:00
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ pSub ];
2014-08-14 20:01:26 +01:00
license = licenses.gpl3;
};
}