2014-06-29 20:17:09 +02:00
|
|
|
{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkitgtk2, gtk2, gnutls, json_c,
|
2014-06-30 14:30:45 +02:00
|
|
|
m4, glib_networking, gsettings_desktop_schemas, dconf }:
|
2013-10-02 15:13:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-07-03 22:07:08 +02:00
|
|
|
name = "dwb-2014-07-03";
|
2013-10-02 15:13:40 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://bitbucket.org/portix/dwb.git";
|
2014-07-03 22:07:08 +02:00
|
|
|
rev = "6224470489eb5ba92987e01396269f8b7cd78ada";
|
|
|
|
sha256 = "04p9frsnh1qz067cw36anvr41an789fba839svdjrdva0f2751g8";
|
2013-10-02 15:13:40 +02:00
|
|
|
};
|
|
|
|
|
2014-06-29 20:17:09 +02:00
|
|
|
buildInputs = [ pkgconfig makeWrapper gsettings_desktop_schemas libsoup webkitgtk2 gtk2 gnutls json_c m4 ];
|
2013-10-02 15:13:40 +02:00
|
|
|
|
|
|
|
# There are Xlib and gtk warnings therefore I have set Wno-error
|
2014-06-29 20:17:09 +02:00
|
|
|
makeFlags = ''PREFIX=$(out) GTK=2 CPPFLAGS="-Wno-error"'';
|
2013-10-02 15:13:40 +02:00
|
|
|
|
2014-04-05 15:51:42 +02:00
|
|
|
preFixup=''
|
2013-10-02 15:13:40 +02:00
|
|
|
wrapProgram "$out/bin/dwb" \
|
2014-06-30 14:30:45 +02:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules:${dconf}/lib/gio/modules" \
|
2014-04-05 15:51:42 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
2013-10-05 18:13:27 +02:00
|
|
|
wrapProgram "$out/bin/dwbem" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules"
|
2013-10-02 15:13:40 +02: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 17:36:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.mesaPlatforms;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.pSub ];
|
2013-10-02 15:13:40 +02:00
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|