8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
29 lines
935 B
Nix
29 lines
935 B
Nix
{ stdenv, fetchFromGitHub, qmake, qtwebkit, hunspell }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "qtwebkit-plugins-2017-01-25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "QupZilla";
|
|
repo = "qtwebkit-plugins";
|
|
rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
|
|
sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
buildInputs = [ qtwebkit hunspell ];
|
|
|
|
postPatch = ''
|
|
sed -i "s,-lhunspell,-lhunspell-${stdenv.lib.versions.majorMinor hunspell.version}," src/spellcheck/spellcheck.pri
|
|
sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix," src/src.pro
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
|
|
homepage = "https://github.com/QupZilla/qtwebkit-plugins";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|