2013-10-02 15:13:40 +02:00
|
|
|
{ stdenv, fetchgit, pkgconfig, makeWrapper, libsoup, webkit, gtk3, gnutls, json_c,
|
|
|
|
m4, glib_networking, gsettings_desktop_schemas }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-03-01 19:21:06 +01:00
|
|
|
name = "dwb-2014-03-01";
|
2013-10-02 15:13:40 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://bitbucket.org/portix/dwb.git";
|
2014-03-01 19:21:06 +01:00
|
|
|
rev = "e8d4b8d7937b70279d006da4938dfe52fb85f9e8";
|
|
|
|
sha256 = "0m4730zqmnvb9k6xyydi221sh0wbanzbhg07xvwil3kn1d29340w";
|
2013-10-02 15:13:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig makeWrapper libsoup webkit gtk3 gnutls json_c m4 ];
|
|
|
|
|
|
|
|
# There are Xlib and gtk warnings therefore I have set Wno-error
|
|
|
|
preBuild=''
|
|
|
|
makeFlagsArray=(CPPFLAGS="-Wno-error" GTK=3 PREFIX=$out);
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall=''
|
|
|
|
wrapProgram "$out/bin/dwb" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share:$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";
|
|
|
|
};
|
|
|
|
}
|