2016-08-17 17:32:03 +01:00
|
|
|
{ qtSubmodule, stdenv, qtdeclarative, qtlocation, qtsensors
|
2016-09-11 22:24:51 +01:00
|
|
|
, fontconfig, gdk_pixbuf, gtk2, libwebp, libxml2, libxslt
|
2016-09-05 17:59:00 +01:00
|
|
|
, sqlite, systemd, glib, gst_all_1
|
2016-10-18 22:00:22 +01:00
|
|
|
, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
|
2016-08-17 14:37:27 +01:00
|
|
|
, substituteAll
|
|
|
|
, flashplayerFix ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
qtSubmodule {
|
|
|
|
name = "qtwebkit";
|
2016-08-17 17:32:03 +01:00
|
|
|
qtInputs = [ qtdeclarative qtlocation qtsensors ];
|
|
|
|
buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ];
|
2016-08-17 14:37:27 +01:00
|
|
|
nativeBuildInputs = [
|
2016-10-18 22:00:22 +01:00
|
|
|
bison2 flex gdb gperf perl pkgconfig python2 ruby
|
2016-08-17 14:37:27 +01:00
|
|
|
];
|
|
|
|
patches =
|
|
|
|
let dlopen-webkit-nsplugin = substituteAll {
|
|
|
|
src = ./0001-dlopen-webkit-nsplugin.patch;
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk = gtk2.out;
|
2016-08-17 14:37:27 +01:00
|
|
|
gdk_pixbuf = gdk_pixbuf.out;
|
|
|
|
};
|
|
|
|
dlopen-webkit-gtk = substituteAll {
|
|
|
|
src = ./0002-dlopen-webkit-gtk.patch;
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk = gtk2.out;
|
2016-08-17 14:37:27 +01:00
|
|
|
};
|
|
|
|
dlopen-webkit-udev = substituteAll {
|
|
|
|
src = ./0003-dlopen-webkit-udev.patch;
|
2016-09-05 17:59:00 +01:00
|
|
|
libudev = systemd.lib;
|
2016-08-17 14:37:27 +01:00
|
|
|
};
|
|
|
|
in optionals flashplayerFix [ dlopen-webkit-nsplugin dlopen-webkit-gtk ]
|
|
|
|
++ [ dlopen-webkit-udev ];
|
2016-08-17 20:46:24 +01:00
|
|
|
meta.maintainers = with stdenv.lib.maintainers; [ abbradar ];
|
2016-08-17 14:37:27 +01:00
|
|
|
}
|