2015-09-29 16:11:03 +00:00
|
|
|
{ stdenv, fetchurl, perl, python, ruby, bison, gperf, flex
|
2014-10-09 10:26:20 +00:00
|
|
|
, pkgconfig, which, gettext, gobjectIntrospection
|
2015-01-06 16:34:24 +00:00
|
|
|
, gtk2, gtk3, wayland, libwebp, enchant, sqlite
|
2015-10-20 20:49:30 +00:00
|
|
|
, libxml2, libsoup, libsecret, libxslt, harfbuzz, xorg
|
2014-10-09 10:26:20 +00:00
|
|
|
, gst-plugins-base
|
|
|
|
, withGtk2 ? false
|
2016-03-29 16:04:46 +00:00
|
|
|
, enableIntrospection ? !stdenv.isDarwin
|
|
|
|
, enableCredentialStorage ? !stdenv.isDarwin
|
|
|
|
, readline, libedit
|
2014-10-09 10:26:20 +00:00
|
|
|
}:
|
|
|
|
|
2016-03-29 16:04:46 +00:00
|
|
|
assert stdenv.isDarwin -> !enableIntrospection;
|
|
|
|
assert stdenv.isDarwin -> !enableCredentialStorage;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2014-10-09 10:26:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "webkitgtk-${version}";
|
2016-07-15 12:15:13 +00:00
|
|
|
version = "2.4.11";
|
2014-10-09 10:26:20 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Web content rendering engine, GTK+ port";
|
|
|
|
homepage = "http://webkitgtk.org/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
2016-03-13 08:08:15 +00:00
|
|
|
maintainers = [];
|
2014-10-09 10:26:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
2016-07-15 12:15:13 +00:00
|
|
|
sha256 = "1xsvnvyvlywwyf6m9ainpsg87jkxjmd37q6zgz9cxb7v3c2ym2jq";
|
2014-10-09 10:26:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CC = "cc";
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs Tools/gtk
|
|
|
|
'';
|
2016-03-29 16:04:46 +00:00
|
|
|
patches = [
|
|
|
|
./webcore-svg-libxml-cflags.patch
|
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
./impure-icucore.patch
|
|
|
|
./quartz-webcore.patch
|
|
|
|
./libc++.patch
|
|
|
|
./plugin-none.patch
|
|
|
|
];
|
webkitgtk-2.4: security update, fix and parallel build
NEWS claims security fixes:
CVE-2014-1344, CVE-2014-1384, CVE-2014-1385, CVE-2014-1386,
CVE-2014-1387, CVE-2014-1388, CVE-2014-1389, CVE-2014-1390.
Otherwise NEWS seems safe, basically only containing bugfixes.
Parallel building should work now, thanks to make update :-)
tested with 8 threads, once webkitgtk24x and webkitgtk2.
2015-04-24 07:59:52 +00:00
|
|
|
|
2014-10-09 10:26:20 +00:00
|
|
|
configureFlags = with stdenv.lib; [
|
|
|
|
"--disable-geolocation"
|
2016-07-15 12:15:13 +00:00
|
|
|
"--disable-jit"
|
2014-10-09 10:26:20 +00:00
|
|
|
(optionalString enableIntrospection "--enable-introspection")
|
2016-03-29 16:04:46 +00:00
|
|
|
] ++ optional withGtk2 [
|
2014-10-09 10:26:20 +00:00
|
|
|
"--with-gtk=2.0"
|
2016-03-29 16:04:46 +00:00
|
|
|
] ++ optionals (withGtk2 || stdenv.isDarwin) [
|
2014-10-09 10:26:20 +00:00
|
|
|
"--disable-webkit2"
|
2016-03-29 16:04:46 +00:00
|
|
|
] ++ optionals stdenv.isDarwin [
|
|
|
|
"--disable-x11-target"
|
|
|
|
"--enable-quartz-target"
|
|
|
|
"--disable-web-audio"
|
|
|
|
] ++ optionals (!enableCredentialStorage) [
|
|
|
|
"--disable-credential-storage"
|
2014-10-09 10:26:20 +00:00
|
|
|
];
|
|
|
|
|
2016-03-29 16:04:46 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DU_NOEXCEPT=";
|
|
|
|
|
2014-10-09 10:26:20 +00:00
|
|
|
dontAddDisableDepTrack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2015-09-29 16:11:03 +00:00
|
|
|
perl python ruby bison gperf flex
|
2014-10-09 10:26:20 +00:00
|
|
|
pkgconfig which gettext gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-03-29 16:04:46 +00:00
|
|
|
gtk2 libwebp enchant
|
|
|
|
libxml2 libxslt
|
2015-10-20 20:49:30 +00:00
|
|
|
gst-plugins-base sqlite xorg.libXt
|
2016-03-29 16:04:46 +00:00
|
|
|
] ++ optionals enableCredentialStorage [
|
|
|
|
libsecret
|
|
|
|
] ++ (if stdenv.isDarwin then [
|
|
|
|
readline libedit
|
|
|
|
] else [
|
|
|
|
wayland
|
|
|
|
]);
|
2014-10-09 10:26:20 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2015-09-29 16:11:03 +00:00
|
|
|
libsoup harfbuzz/*icu in *.la*/
|
2014-10-09 10:26:20 +00:00
|
|
|
(if withGtk2 then gtk2 else gtk3)
|
|
|
|
];
|
|
|
|
|
2015-05-25 12:05:07 +00:00
|
|
|
# Still fails with transient errors in version 2.4.9.
|
|
|
|
enableParallelBuilding = false;
|
webkitgtk-2.4: security update, fix and parallel build
NEWS claims security fixes:
CVE-2014-1344, CVE-2014-1384, CVE-2014-1385, CVE-2014-1386,
CVE-2014-1387, CVE-2014-1388, CVE-2014-1389, CVE-2014-1390.
Otherwise NEWS seems safe, basically only containing bugfixes.
Parallel building should work now, thanks to make update :-)
tested with 8 threads, once webkitgtk24x and webkitgtk2.
2015-04-24 07:59:52 +00:00
|
|
|
|
2015-05-25 12:05:07 +00:00
|
|
|
}
|