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