2017-05-26 14:43:25 +01:00
|
|
|
{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkitgtk24x-gtk2, gtk2, gnutls
|
2015-07-07 12:11:00 +01:00
|
|
|
, json_c, m4, glib_networking, gsettings_desktop_schemas, dconf }:
|
2013-10-02 14:13:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-04-15 21:26:17 +01:00
|
|
|
name = "dwb-2016-03-21";
|
2013-10-02 14:13:40 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2016-04-15 21:26:17 +01:00
|
|
|
url = "https://bitbucket.org/portix/dwb";
|
|
|
|
rev = "7fb82bc1db36a5d1d2436088c9b58054d2c51f96";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1wg7pslcx7z4fw595a3nbnygxy2bwfj0h377i48mxhddvl3wzzbq";
|
2013-10-02 14:13:40 +01:00
|
|
|
};
|
|
|
|
|
2015-07-07 12:11:00 +01:00
|
|
|
buildInputs = [ pkgconfig makeWrapper gsettings_desktop_schemas libsoup
|
2017-05-26 14:43:25 +01:00
|
|
|
webkitgtk24x-gtk2 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" \
|
2017-07-24 05:24:11 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules:${stdenv.lib.getLib 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" \
|
2015-10-11 15:06:34 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/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;
|
2013-10-02 14:13:40 +01:00
|
|
|
};
|
|
|
|
}
|