Merge pull request #13545 from bendlas/init-webkitgtk-212

webkitgtk: init at 2.12

+61
+56
pkgs/development/libraries/webkitgtk/2.12.nix
··· 1 + { stdenv, fetchurl, perl, python, ruby, bison, gperf, cmake 2 + , pkgconfig, gettext, gobjectIntrospection, libnotify 3 + , gtk2, gtk3, wayland, libwebp, enchant, xlibs, libxkbcommon, epoxy, at_spi2_core 4 + , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs 5 + , enableGeoLocation ? true, geoclue2, sqlite 6 + , gst-plugins-base 7 + }: 8 + 9 + assert enableGeoLocation -> geoclue2 != null; 10 + 11 + with stdenv.lib; 12 + stdenv.mkDerivation rec { 13 + name = "webkitgtk-${version}"; 14 + version = "2.12.0"; 15 + 16 + meta = { 17 + description = "Web content rendering engine, GTK+ port"; 18 + homepage = "http://webkitgtk.org/"; 19 + license = licenses.bsd2; 20 + platforms = platforms.linux; 21 + hydraPlatforms = []; 22 + maintainers = with maintainers; [ iyzsong koral ]; 23 + }; 24 + 25 + preConfigure = "patchShebangs Tools"; 26 + 27 + src = fetchurl { 28 + url = "http://webkitgtk.org/releases/${name}.tar.xz"; 29 + sha256 = "19jyvyw8ss4bacq3f7ybdb0r16r84q12j2bpciyj9jqvzpw091m6"; 30 + }; 31 + 32 + patches = [ ./finding-harfbuzz-icu.patch ]; 33 + 34 + cmakeFlags = [ "-DPORT=GTK" "-DUSE_LIBHYPHEN=0" ]; 35 + 36 + # XXX: WebKit2 missing include path for gst-plugins-base. 37 + # Filled: https://bugs.webkit.org/show_bug.cgi?id=148894 38 + NIX_CFLAGS_COMPILE = "-I${gst-plugins-base}/include/gstreamer-1.0"; 39 + 40 + nativeBuildInputs = [ 41 + cmake perl python ruby bison gperf sqlite 42 + pkgconfig gettext gobjectIntrospection 43 + ] ++ (with xlibs; [ libXdmcp ]); 44 + 45 + buildInputs = [ 46 + gtk2 wayland libwebp enchant libnotify 47 + libxml2 libsecret libxslt harfbuzz libpthreadstubs 48 + gst-plugins-base libxkbcommon epoxy at_spi2_core 49 + ] ++ optional enableGeoLocation geoclue2; 50 + 51 + propagatedBuildInputs = [ 52 + libsoup gtk3 53 + ]; 54 + 55 + enableParallelBuilding = true; 56 + }
+5
pkgs/top-level/all-packages.nix
··· 9041 9041 gst-plugins-base = gst_all_1.gst-plugins-base; 9042 9042 }; 9043 9043 9044 + webkitgtk212x = callPackage ../development/libraries/webkitgtk/2.12.nix { 9045 + harfbuzz = harfbuzz-icu; 9046 + gst-plugins-base = gst_all_1.gst-plugins-base; 9047 + }; 9048 + 9044 9049 webkitgtk2 = webkitgtk24x.override { 9045 9050 withGtk2 = true; 9046 9051 enableIntrospection = false;