2013-10-02 17:13:40 +04:00
|
|
|
{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkit, gtk3, gnutls, json_c,
|
|
|
|
m4, glib_networking, gsettings_desktop_schemas }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-06-04 00:06:14 +04:00
|
|
|
name = "dwb-2014-06-03";
|
2013-10-02 17:13:40 +04:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://bitbucket.org/portix/dwb.git";
|
2014-06-04 00:06:14 +04:00
|
|
|
rev = "d00af56c1e60978060f1b2077f3d49995b98c54f";
|
|
|
|
sha256 = "02bs9nbgk8ghaxywhqd8mii4lik748dssn551m00i1305p6q1cjj";
|
2013-10-02 17:13:40 +04:00
|
|
|
};
|
|
|
|
|
2014-04-20 00:59:06 +04:00
|
|
|
buildInputs = [ pkgconfig makeWrapper gsettings_desktop_schemas libsoup webkit gtk3 gnutls json_c m4 ];
|
2013-10-02 17:13:40 +04:00
|
|
|
|
|
|
|
# There are Xlib and gtk warnings therefore I have set Wno-error
|
|
|
|
preBuild=''
|
|
|
|
makeFlagsArray=(CPPFLAGS="-Wno-error" GTK=3 PREFIX=$out);
|
|
|
|
'';
|
|
|
|
|
2014-04-05 17:51:42 +04:00
|
|
|
preFixup=''
|
2013-10-02 17:13:40 +04:00
|
|
|
wrapProgram "$out/bin/dwb" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2014-04-05 17:51:42 +04:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
2013-10-05 20:13:27 +04:00
|
|
|
wrapProgram "$out/bin/dwbem" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules"
|
2013-10-02 17:13:40 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://portix.bitbucket.org/dwb/;
|
|
|
|
description = "A lightweight web browser based on the webkit web browser engine and the gtk toolkit";
|
2013-10-07 19:36:47 +04:00
|
|
|
platforms = stdenv.lib.platforms.mesaPlatforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.pSub ];
|
2013-10-02 17:13:40 +04:00
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|