2013-12-05 15:24:05 +00:00
|
|
|
{ stdenv, fetchurl, perl, python, ruby, bison, gperf, flex
|
|
|
|
, pkgconfig, which, gettext, gobjectIntrospection
|
|
|
|
, gtk2, gtk3, wayland, libwebp, enchant
|
|
|
|
, libxml2, libsoup, libsecret, libxslt, harfbuzz
|
2014-01-23 00:12:36 +00:00
|
|
|
, gst-plugins-base
|
2014-03-27 08:11:56 +00:00
|
|
|
, withGtk2 ? false
|
|
|
|
, enableIntrospection ? true
|
2013-12-05 15:24:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-12 21:22:48 +00:00
|
|
|
name = "webkitgtk-2.4.4";
|
2013-12-05 15:24:05 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web content rendering engine, GTK+ port";
|
|
|
|
homepage = "http://webkitgtk.org/";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ iyzsong ];
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://webkitgtk.org/releases/${name}.tar.xz";
|
2014-08-12 21:22:48 +00:00
|
|
|
sha256 = "1f9sypnnxxcml9vj79g9hf2di52pg5kggyc3wgsy3q9a6mzgrjsq";
|
2013-12-05 15:24:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./webcore-svg-libxml-cflags.patch ];
|
|
|
|
|
2014-03-29 09:00:12 +00:00
|
|
|
CC = "cc";
|
|
|
|
|
2013-12-05 15:24:05 +00:00
|
|
|
prePatch = ''
|
2013-12-13 13:31:35 +00:00
|
|
|
patchShebangs Tools/gtk
|
2013-12-05 15:24:05 +00:00
|
|
|
'';
|
|
|
|
|
2014-03-27 08:11:56 +00:00
|
|
|
configureFlags = with stdenv.lib; [
|
2013-12-05 15:24:05 +00:00
|
|
|
"--disable-geolocation"
|
2014-03-27 08:11:56 +00:00
|
|
|
(optionalString enableIntrospection "--enable-introspection")
|
|
|
|
] ++ stdenv.lib.optional withGtk2 [
|
|
|
|
"--with-gtk=2.0"
|
|
|
|
"--disable-webkit2"
|
2013-12-05 15:24:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontAddDisableDepTrack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
perl python ruby bison gperf flex
|
|
|
|
pkgconfig which gettext gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk2 wayland libwebp enchant
|
|
|
|
libxml2 libsecret libxslt harfbuzz
|
2014-01-23 00:12:36 +00:00
|
|
|
gst-plugins-base
|
2013-12-05 15:24:05 +00:00
|
|
|
];
|
|
|
|
|
2014-03-27 08:11:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
libsoup
|
|
|
|
(if withGtk2 then gtk2 else gtk3)
|
|
|
|
];
|
2013-12-05 15:24:05 +00:00
|
|
|
|
2013-12-12 20:59:45 +00:00
|
|
|
#enableParallelBuilding = true; # build problems on Hydra
|
2013-12-05 15:24:05 +00:00
|
|
|
}
|