2016-02-27 10:07:04 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, python, ruby, bison, gperf, cmake
|
2015-09-25 09:28:51 +01:00
|
|
|
, pkgconfig, gettext, gobjectIntrospection, libnotify
|
2013-12-05 15:24:05 +00:00
|
|
|
, gtk2, gtk3, wayland, libwebp, enchant
|
2014-10-09 11:26:20 +01:00
|
|
|
, libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs
|
2016-04-01 09:06:01 +01:00
|
|
|
, enableGeoLocation ? false, geoclue2, sqlite, xorg
|
2016-03-29 17:04:46 +01:00
|
|
|
, enableCredentialStorage ? !stdenv.isDarwin
|
|
|
|
, gst-plugins-base, readline, libedit
|
2013-12-05 15:24:05 +00:00
|
|
|
}:
|
|
|
|
|
2014-12-29 11:23:32 +00:00
|
|
|
assert enableGeoLocation -> geoclue2 != null;
|
2016-03-29 17:04:46 +01:00
|
|
|
assert stdenv.isDarwin -> !enableCredentialStorage;
|
2014-12-29 11:23:32 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2013-12-05 15:24:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-09 11:26:20 +01:00
|
|
|
name = "webkitgtk-${version}";
|
2016-08-03 22:21:50 +01:00
|
|
|
version = "2.10.9";
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2014-12-29 11:23:32 +00:00
|
|
|
meta = {
|
2013-12-05 15:24:05 +00:00
|
|
|
description = "Web content rendering engine, GTK+ port";
|
|
|
|
homepage = "http://webkitgtk.org/";
|
2014-10-09 11:26:20 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2016-02-27 21:29:24 +00:00
|
|
|
hydraPlatforms = [];
|
2016-03-13 08:08:15 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2013-12-05 15:24:05 +00:00
|
|
|
};
|
|
|
|
|
2014-11-17 22:40:28 +00:00
|
|
|
preConfigure = "patchShebangs Tools";
|
|
|
|
|
2013-12-05 15:24:05 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
2016-08-03 22:21:50 +01:00
|
|
|
sha256 = "0sg935wpkgyd5ypd5fj25vd7ri8s6sbrmssb53xbgcc02xs8vcdv";
|
2013-12-05 15:24:05 +00:00
|
|
|
};
|
|
|
|
|
2016-03-29 17:04:46 +01:00
|
|
|
patches = [
|
|
|
|
./finding-harfbuzz-icu.patch
|
|
|
|
] ++ optional stdenv.isDarwin ./adding-libintl.patch;
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2016-03-29 17:04:46 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPORT=GTK"
|
|
|
|
"-DUSE_LIBHYPHEN=OFF"
|
|
|
|
] ++ optionals (!enableCredentialStorage) [
|
|
|
|
"-DENABLE_CREDENTIAL_STORAGE=OFF"
|
|
|
|
] ++ optionals (!enableGeoLocation) [
|
|
|
|
"-DENABLE_GEOLOCATION=OFF"
|
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
"-DENABLE_WEBKIT=ON"
|
|
|
|
"-DENABLE_X11_TARGET=OFF"
|
|
|
|
"-DENABLE_QUARTZ_TARGET=ON"
|
|
|
|
"-DENABLE_TOOLS=ON"
|
|
|
|
"-DENABLE_MINIBROWSER=ON"
|
|
|
|
"-DENABLE_PLUGIN_PROCESS_GTK2=OFF"
|
|
|
|
"-DENABLE_VIDEO=OFF"
|
|
|
|
"-DENABLE_WEB_AUDIO=OFF"
|
|
|
|
"-DENABLE_OPENGL=OFF"
|
|
|
|
"-DENABLE_INTROSPECTION=OFF"
|
|
|
|
"-DUSE_LIBNOTIFY=OFF"
|
|
|
|
"-DCMAKE_SHARED_LINKER_FLAGS=-L/path/to/nonexistent/folder"
|
|
|
|
];
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2015-08-29 23:19:02 +01:00
|
|
|
# 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";
|
2015-08-29 23:19:02 +01:00
|
|
|
|
2013-12-05 15:24:05 +00:00
|
|
|
nativeBuildInputs = [
|
2015-01-06 16:34:24 +00:00
|
|
|
cmake perl python ruby bison gperf sqlite
|
2014-10-09 11:26:20 +01:00
|
|
|
pkgconfig gettext gobjectIntrospection
|
2013-12-05 15:24:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-03-29 17:04:46 +01:00
|
|
|
gtk2 libwebp enchant libnotify
|
|
|
|
libxml2 libxslt harfbuzz libpthreadstubs
|
2015-10-20 21:49:30 +01:00
|
|
|
gst-plugins-base xorg.libXt
|
2016-03-29 17:04:46 +01:00
|
|
|
] ++ optionals enableCredentialStorage [
|
|
|
|
libsecret
|
|
|
|
] ++ (if stdenv.isDarwin then [
|
|
|
|
readline libedit
|
|
|
|
] else [
|
|
|
|
wayland
|
|
|
|
]) ++ optional enableGeoLocation geoclue2;
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2014-03-27 08:11:56 +00:00
|
|
|
propagatedBuildInputs = [
|
2014-10-09 11:26:20 +01:00
|
|
|
libsoup gtk3
|
2014-03-27 08:11:56 +00:00
|
|
|
];
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2015-09-25 09:28:51 +01:00
|
|
|
enableParallelBuilding = true;
|
2013-12-05 15:24:05 +00:00
|
|
|
}
|