2017-02-28 16:37:57 +01:00
|
|
|
{ qtSubmodule, stdenv, qtdeclarative, qtlocation, qtsensors
|
|
|
|
, fontconfig, gdk_pixbuf, gtk2, libwebp, libxml2, libxslt
|
|
|
|
, sqlite, systemd, glib, gst_all_1
|
|
|
|
, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
|
2017-03-26 00:16:51 +01:00
|
|
|
, darwin
|
2017-02-28 16:37:57 +01:00
|
|
|
, substituteAll
|
|
|
|
, flashplayerFix ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
qtSubmodule {
|
|
|
|
name = "qtwebkit";
|
|
|
|
qtInputs = [ qtdeclarative qtlocation qtsensors ];
|
2017-03-26 00:16:51 +01:00
|
|
|
buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ]
|
|
|
|
++ optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [ OpenGL ]);
|
2017-02-28 16:37:57 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bison2 flex gdb gperf perl pkgconfig python2 ruby
|
|
|
|
];
|
2017-03-26 00:16:51 +01:00
|
|
|
|
|
|
|
__impureHostDeps = optionals (stdenv.isDarwin) [
|
|
|
|
"/usr/lib/libicucore.dylib"
|
|
|
|
];
|
|
|
|
|
2017-02-28 16:37:57 +01:00
|
|
|
patches =
|
|
|
|
let dlopen-webkit-nsplugin = substituteAll {
|
|
|
|
src = ./0001-dlopen-webkit-nsplugin.patch;
|
|
|
|
gtk = gtk2.out;
|
|
|
|
gdk_pixbuf = gdk_pixbuf.out;
|
|
|
|
};
|
|
|
|
dlopen-webkit-gtk = substituteAll {
|
|
|
|
src = ./0002-dlopen-webkit-gtk.patch;
|
|
|
|
gtk = gtk2.out;
|
|
|
|
};
|
|
|
|
dlopen-webkit-udev = substituteAll {
|
|
|
|
src = ./0003-dlopen-webkit-udev.patch;
|
|
|
|
libudev = systemd.lib;
|
|
|
|
};
|
|
|
|
in optionals flashplayerFix [ dlopen-webkit-nsplugin dlopen-webkit-gtk ]
|
2017-03-26 00:16:51 +01:00
|
|
|
++ optionals (!stdenv.isDarwin) [ dlopen-webkit-udev ]
|
|
|
|
++ optionals (stdenv.isDarwin) [ ./0004-icucore-darwin.patch ];
|
2017-05-16 18:11:07 +02:00
|
|
|
|
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
|
|
|
|
2017-03-26 00:16:51 +01:00
|
|
|
meta.maintainers = with stdenv.lib.maintainers; [ abbradar periklis ];
|
2017-02-28 16:37:57 +01:00
|
|
|
}
|