2016-10-18 06:56:18 +00:00
|
|
|
{ stdenv, fetchurl, perl, python2, ruby, bison, gperf, cmake
|
2016-04-13 18:44:59 +00: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 01:16:49 +00:00
|
|
|
version = "2.12.5";
|
2016-04-13 18:44:59 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web content rendering engine, GTK+ port";
|
|
|
|
homepage = "http://webkitgtk.org/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2016-04-14 17:57:14 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2016-04-13 18:44:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs Tools";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
2016-09-26 01:16:49 +00:00
|
|
|
sha256 = "0h0wig413399wws6l88mn1nnjbqb42vb55yvz8az39b4p1a7h53b";
|
2016-04-13 18:44:59 +00: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 21:08:24 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0";
|
2016-04-13 18:44:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2016-10-18 06:56:18 +00:00
|
|
|
cmake perl python2 ruby bison gperf sqlite
|
2016-04-13 18:44:59 +00:00
|
|
|
pkgconfig gettext gobjectIntrospection
|
2016-05-16 17:00:49 +00:00
|
|
|
];
|
2016-04-13 18:44:59 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk2 wayland libwebp enchant libnotify
|
|
|
|
libxml2 libsecret libxslt harfbuzz libpthreadstubs
|
|
|
|
gst-plugins-base libxkbcommon epoxy at_spi2_core
|
2016-05-15 21:19:09 +00:00
|
|
|
] ++ optional enableGeoLocation geoclue2
|
2016-05-16 17:00:49 +00:00
|
|
|
++ (with xlibs; [ libXdmcp libXt libXtst ]);
|
2016-04-13 18:44:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libsoup gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
}
|