2017-06-02 16:40:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qmake, qtwebkit, hunspell }:
|
2016-08-17 15:58:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-06-03 14:56:19 +01:00
|
|
|
name = "qtwebkit-plugins-2017-01-25";
|
2016-08-17 15:58:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QupZilla";
|
|
|
|
repo = "qtwebkit-plugins";
|
2019-06-03 14:56:19 +01:00
|
|
|
rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
|
|
|
|
sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
|
2016-08-17 15:58:06 +01:00
|
|
|
};
|
|
|
|
|
2017-06-02 16:40:19 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2016-08-17 15:58:06 +01:00
|
|
|
|
|
|
|
buildInputs = [ qtwebkit hunspell ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-03-06 20:38:57 +00:00
|
|
|
sed -i "s,-lhunspell,-lhunspell-${stdenv.lib.versions.majorMinor hunspell.version}," src/spellcheck/spellcheck.pri
|
2017-05-15 12:44:33 +01:00
|
|
|
sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix," src/src.pro
|
2016-08-17 15:58:06 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/QupZilla/qtwebkit-plugins;
|
2016-08-17 15:58:06 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|