1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 qmake,
6 qtwebkit,
7 hunspell,
8}:
9
10stdenv.mkDerivation {
11 pname = "qtwebkit-plugins";
12 version = "unstable-2017-01-25";
13
14 src = fetchFromGitHub {
15 owner = "QupZilla";
16 repo = "qtwebkit-plugins";
17 rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
18 sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
19 };
20
21 nativeBuildInputs = [ qmake ];
22
23 buildInputs = [
24 qtwebkit
25 hunspell
26 ];
27
28 dontWrapQtApps = true;
29
30 postPatch = ''
31 sed -i "s,-lhunspell,-lhunspell-${lib.versions.majorMinor hunspell.version}," src/spellcheck/spellcheck.pri
32 sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix," src/src.pro
33 '';
34
35 meta = with lib; {
36 description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
37 homepage = "https://github.com/QupZilla/qtwebkit-plugins";
38 license = licenses.gpl3;
39 platforms = platforms.linux;
40 maintainers = [ ];
41 };
42}