2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, qmake, qtwebkit, hunspell }:
|
2016-08-17 14:58:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-06-03 13:56:19 +00:00
|
|
|
name = "qtwebkit-plugins-2017-01-25";
|
2016-08-17 14:58:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QupZilla";
|
|
|
|
repo = "qtwebkit-plugins";
|
2019-06-03 13:56:19 +00:00
|
|
|
rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
|
|
|
|
sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
|
2016-08-17 14:58:06 +00:00
|
|
|
};
|
|
|
|
|
2017-06-02 15:40:19 +00:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2016-08-17 14:58:06 +00:00
|
|
|
|
|
|
|
buildInputs = [ qtwebkit hunspell ];
|
|
|
|
|
|
|
|
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 11:44:33 +00:00
|
|
|
sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix," src/src.pro
|
2016-08-17 14:58:06 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-08-17 14:58:06 +00:00
|
|
|
description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/QupZilla/qtwebkit-plugins";
|
2016-08-17 14:58:06 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|