2017-12-18 21:10:37 -08:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, intltool, vala_0_34, wrapGAppsHook
|
2015-01-06 11:36:08 -08:00
|
|
|
, gtk3, webkitgtk, librsvg, libnotify, sqlite
|
2018-02-24 18:23:58 -08:00
|
|
|
, glib-networking, gsettings-desktop-schemas, libsoup, pcre, gnome3
|
|
|
|
, libxcb, libpthreadstubs, libXdmcp, libxkbcommon, epoxy, at-spi2-core
|
2016-08-14 14:49:19 -07:00
|
|
|
, zeitgeistSupport ? false, zeitgeist ? null
|
2013-12-25 21:48:17 -08:00
|
|
|
}:
|
2008-09-07 05:58:56 -07:00
|
|
|
|
2016-08-14 14:49:19 -07:00
|
|
|
assert zeitgeistSupport -> zeitgeist != null;
|
|
|
|
|
2013-12-25 21:48:17 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-23 13:28:30 -08:00
|
|
|
name = "midori-${version}";
|
2016-08-14 14:49:19 -07:00
|
|
|
version = "0.5.11";
|
2013-12-25 21:48:17 -08:00
|
|
|
|
2016-07-25 13:25:42 -07:00
|
|
|
meta = with stdenv.lib; {
|
2013-12-25 21:48:17 -08:00
|
|
|
description = "Lightweight WebKitGTK+ web browser";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = http://midori-browser.org;
|
2016-08-14 14:49:19 -07:00
|
|
|
license = with licenses; [ lgpl21Plus ];
|
|
|
|
platforms = with platforms; linux;
|
2016-07-25 13:25:42 -07:00
|
|
|
maintainers = with maintainers; [ raskin ramkromberg ];
|
2008-09-07 05:58:56 -07:00
|
|
|
};
|
|
|
|
|
2013-12-25 21:48:17 -08:00
|
|
|
src = fetchurl {
|
2014-12-18 01:47:59 -08:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/downloads/midori_${version}_all_.tar.bz2"
|
|
|
|
"http://mirrors-ru.go-parts.com/blfs/conglomeration/midori/midori_${version}_all_.tar.bz2"
|
|
|
|
];
|
|
|
|
name = "midori_${version}_all_.tar.bz2";
|
2016-07-25 13:25:42 -07:00
|
|
|
sha256 = "0gcwqkcyliqz10i33ww3wl02mmfnl7jzl2d493l4l53ipsb1l6cn";
|
2013-12-25 21:48:17 -08:00
|
|
|
};
|
2008-09-07 05:58:56 -07:00
|
|
|
|
2016-08-14 14:49:19 -07:00
|
|
|
nativeBuildInputs = [
|
2017-12-18 21:10:37 -08:00
|
|
|
pkgconfig wrapGAppsHook cmake intltool vala_0_34
|
2016-08-14 14:49:19 -07:00
|
|
|
];
|
|
|
|
|
2013-12-25 21:48:17 -08:00
|
|
|
buildInputs = [
|
2018-02-24 18:23:58 -08:00
|
|
|
gtk3 webkitgtk librsvg libnotify sqlite gsettings-desktop-schemas pcre gnome3.gcr
|
|
|
|
libxcb libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core
|
2016-07-25 13:25:42 -07:00
|
|
|
(libsoup.override {gnomeSupport = true; valaSupport = true;})
|
2016-08-14 14:49:19 -07:00
|
|
|
] ++ stdenv.lib.optionals zeitgeistSupport [
|
|
|
|
zeitgeist
|
2013-12-25 21:48:17 -08:00
|
|
|
];
|
2012-03-25 04:22:32 -07:00
|
|
|
|
2016-08-25 14:11:27 -07:00
|
|
|
cmakeFlags = [
|
2016-08-14 14:49:19 -07:00
|
|
|
"-DUSE_ZEITGEIST=${if zeitgeistSupport then "ON" else "OFF"}"
|
|
|
|
"-DHALF_BRO_INCOM_WEBKIT2=ON"
|
2016-07-25 13:25:42 -07:00
|
|
|
"-DUSE_GTK3=1"
|
|
|
|
];
|
2009-08-24 07:24:47 -07:00
|
|
|
|
2016-03-27 15:02:10 -07:00
|
|
|
NIX_LDFLAGS="-lX11";
|
|
|
|
|
2014-04-17 01:25:20 -07:00
|
|
|
preFixup = ''
|
2018-02-24 18:23:58 -08:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" --prefix GIO_EXTRA_MODULES : "${glib-networking.out}/lib/gio/modules")
|
2013-12-25 21:48:17 -08:00
|
|
|
'';
|
2008-09-07 05:58:56 -07:00
|
|
|
}
|