2016-10-18 07:56:18 +01:00
|
|
|
{ stdenv, fetchurl, perl, python2, ruby, bison, gperf, cmake
|
2016-04-13 19:44:59 +01:00
|
|
|
, pkgconfig, gettext, gobjectIntrospection, libnotify
|
|
|
|
, gtk2, gtk3, wayland, libwebp, enchant, xlibs, libxkbcommon, epoxy, at_spi2_core
|
|
|
|
, libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs
|
|
|
|
, enableGeoLocation ? true, geoclue2, sqlite
|
|
|
|
, gst-plugins-base
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableGeoLocation -> geoclue2 != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "webkitgtk-${version}";
|
2016-09-26 02:16:49 +01:00
|
|
|
version = "2.12.5";
|
2016-04-13 19:44:59 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web content rendering engine, GTK+ port";
|
|
|
|
homepage = "http://webkitgtk.org/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2016-04-14 18:57:14 +01:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2016-04-13 19:44:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs Tools";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
2016-09-26 02:16:49 +01:00
|
|
|
sha256 = "0h0wig413399wws6l88mn1nnjbqb42vb55yvz8az39b4p1a7h53b";
|
2016-04-13 19:44:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./finding-harfbuzz-icu.patch ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DPORT=GTK" "-DUSE_LIBHYPHEN=0" ];
|
|
|
|
|
|
|
|
# XXX: WebKit2 missing include path for gst-plugins-base.
|
|
|
|
# Filled: https://bugs.webkit.org/show_bug.cgi?id=148894
|
2016-08-25 22:08:24 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0";
|
2016-04-13 19:44:59 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2016-10-18 07:56:18 +01:00
|
|
|
cmake perl python2 ruby bison gperf sqlite
|
2016-04-13 19:44:59 +01:00
|
|
|
pkgconfig gettext gobjectIntrospection
|
2016-05-16 18:00:49 +01:00
|
|
|
];
|
2016-04-13 19:44:59 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk2 wayland libwebp enchant libnotify
|
|
|
|
libxml2 libsecret libxslt harfbuzz libpthreadstubs
|
|
|
|
gst-plugins-base libxkbcommon epoxy at_spi2_core
|
2016-05-15 22:19:09 +01:00
|
|
|
] ++ optional enableGeoLocation geoclue2
|
2016-05-16 18:00:49 +01:00
|
|
|
++ (with xlibs; [ libXdmcp libXt libXtst ]);
|
2016-04-13 19:44:59 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libsoup gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
}
|