2013-12-05 16:24:05 +01: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 01:12:36 +01:00
|
|
|
, gst-plugins-base
|
2013-12-05 16:24:05 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-03-27 04:33:34 +01:00
|
|
|
name = "webkitgtk-2.4.0";
|
2013-12-05 16:24:05 +01: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-03-27 04:33:34 +01:00
|
|
|
sha256 = "1fyz6ysw7npy5wa7m1zg05zrj0gi0wdlpjbqix03iq4ym36pflnw";
|
2013-12-05 16:24:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./webcore-svg-libxml-cflags.patch ];
|
|
|
|
|
|
|
|
prePatch = ''
|
2013-12-13 14:31:35 +01:00
|
|
|
patchShebangs Tools/gtk
|
|
|
|
|
2013-12-05 16:24:05 +01:00
|
|
|
for i in $(find . -name '*.p[l|m]'); do
|
|
|
|
sed -e 's@/usr/bin/gcc@gcc@' -i $i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-geolocation"
|
|
|
|
"--enable-introspection"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 01:12:36 +01:00
|
|
|
gst-plugins-base
|
2013-12-05 16:24:05 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ gtk3 libsoup ];
|
|
|
|
|
2013-12-12 21:59:45 +01:00
|
|
|
#enableParallelBuilding = true; # build problems on Hydra
|
2013-12-05 16:24:05 +01:00
|
|
|
}
|