forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / qtwebkit-plugins / default.nix
blobdd6a7606f6e247cff0b23f07fdbdbea60a77bbc9
1 { lib, stdenv, fetchFromGitHub, qmake, qtwebkit, hunspell }:
3 stdenv.mkDerivation {
4   pname = "qtwebkit-plugins";
5   version = "unstable-2017-01-25";
7   src = fetchFromGitHub {
8     owner = "QupZilla";
9     repo = "qtwebkit-plugins";
10     rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
11     sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
12   };
14   nativeBuildInputs = [ qmake ];
16   buildInputs = [ qtwebkit hunspell ];
18   dontWrapQtApps = true;
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   '';
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   };