2015-07-07 12:11:00 +01:00
|
|
|
{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkitgtk2, gtk2, gnutls
|
|
|
|
, json_c, m4, glib_networking, gsettings_desktop_schemas, dconf }:
|
2013-10-02 14:13:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-07-07 12:11:00 +01:00
|
|
|
name = "dwb-2015-07-07";
|
2013-10-02 14:13:40 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2014-12-15 14:57:33 +00:00
|
|
|
url = "https://bitbucket.org/0mark/dwb_collect";
|
2015-07-07 12:11:00 +01:00
|
|
|
rev = "9a50dcc7134015c6cb1d26afb77840cf69f7c782";
|
|
|
|
sha256 = "03nyr3c0x5b1jqax0zh407vvi4j47zkj1i52lqs35j2d2sci3lkb";
|
2013-10-02 14:13:40 +01:00
|
|
|
};
|
|
|
|
|
2015-07-07 12:11:00 +01:00
|
|
|
buildInputs = [ pkgconfig makeWrapper gsettings_desktop_schemas libsoup
|
|
|
|
webkitgtk2 gtk2 gnutls json_c m4 ];
|
2013-10-02 14:13:40 +01:00
|
|
|
|
|
|
|
# There are Xlib and gtk warnings therefore I have set Wno-error
|
2014-06-29 19:17:09 +01:00
|
|
|
makeFlags = ''PREFIX=$(out) GTK=2 CPPFLAGS="-Wno-error"'';
|
2013-10-02 14:13:40 +01:00
|
|
|
|
2014-04-05 14:51:42 +01:00
|
|
|
preFixup=''
|
2013-10-02 14:13:40 +01:00
|
|
|
wrapProgram "$out/bin/dwb" \
|
2014-06-30 13:30:45 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules:${dconf}/lib/gio/modules" \
|
2014-04-05 14:51:42 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
|
2013-10-05 17:13:27 +01:00
|
|
|
wrapProgram "$out/bin/dwbem" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules"
|
2013-10-02 14:13:40 +01:00
|
|
|
'';
|
|
|
|
|
2014-08-14 20:01:26 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-02 14:13:40 +01:00
|
|
|
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;
|
2015-07-07 12:11:00 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-08-14 20:01:26 +01:00
|
|
|
license = licenses.gpl3;
|
2015-08-04 12:04:14 +01:00
|
|
|
|
|
|
|
# dwb is no longer maintained by portix and efforts to keep it alive
|
|
|
|
# were not successful, see issue #7952 for discussion.
|
|
|
|
broken = true;
|
2013-10-02 14:13:40 +01:00
|
|
|
};
|
|
|
|
}
|