1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/development/libraries/webkitgtk/default.nix

62 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, perl, python, ruby, bison, gperf, flex
, pkgconfig, which, gettext, gobjectIntrospection
, gtk2, gtk3, wayland, libwebp, enchant
, libxml2, libsoup, libsecret, libxslt, harfbuzz
, gst-plugins-base
2014-03-27 08:11:56 +00:00
, withGtk2 ? false
, enableIntrospection ? true
}:
stdenv.mkDerivation rec {
2014-03-27 03:33:34 +00:00
name = "webkitgtk-2.4.0";
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 03:33:34 +00:00
sha256 = "1fyz6ysw7npy5wa7m1zg05zrj0gi0wdlpjbqix03iq4ym36pflnw";
};
patches = [ ./webcore-svg-libxml-cflags.patch ];
2014-03-29 09:00:12 +00:00
CC = "cc";
prePatch = ''
patchShebangs Tools/gtk
'';
2014-03-27 08:11:56 +00:00
configureFlags = with stdenv.lib; [
"--disable-geolocation"
2014-03-27 08:11:56 +00:00
(optionalString enableIntrospection "--enable-introspection")
] ++ stdenv.lib.optional withGtk2 [
"--with-gtk=2.0"
"--disable-webkit2"
];
dontAddDisableDepTrack = true;
nativeBuildInputs = [
perl python ruby bison gperf flex
pkgconfig which gettext gobjectIntrospection
];
buildInputs = [
gtk2 wayland libwebp enchant
libxml2 libsecret libxslt harfbuzz
gst-plugins-base
];
2014-03-27 08:11:56 +00:00
propagatedBuildInputs = [
libsoup
(if withGtk2 then gtk2 else gtk3)
];
#enableParallelBuilding = true; # build problems on Hydra
}