2021-01-21 17:00:13 +00:00
|
|
|
{ lib, 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 ];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2016-08-17 15:58:06 +01:00
|
|
|
postPatch = ''
|
2021-01-21 17:00:13 +00:00
|
|
|
sed -i "s,-lhunspell,-lhunspell-${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
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-08-17 15:58:06 +01:00
|
|
|
description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
|
2020-04-01 02:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|