summary refs log tree commit diff
path: root/pkgs/development/libraries/qtwebkit-plugins/default.nix
blob: dd6a7606f6e247cff0b23f07fdbdbea60a77bbc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchFromGitHub, qmake, qtwebkit, hunspell }:

stdenv.mkDerivation {
  pname = "qtwebkit-plugins";
  version = "unstable-2017-01-25";

  src = fetchFromGitHub {
    owner = "QupZilla";
    repo = "qtwebkit-plugins";
    rev = "b58ee9d5b31977491662aa4e8bee16404638bf14";
    sha256 = "04wvlhdj45g1v1a3zl0pkf9r72i22h1br10lhhrgad7ypym974gw";
  };

  nativeBuildInputs = [ qmake ];

  buildInputs = [ qtwebkit hunspell ];

  dontWrapQtApps = true;

  postPatch = ''
    sed -i "s,-lhunspell,-lhunspell-${lib.versions.majorMinor hunspell.version}," src/spellcheck/spellcheck.pri
    sed -i "s,\$\$\[QT_INSTALL_PLUGINS\],$out/$qtPluginPrefix," src/src.pro
  '';

  meta = with 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 ];
  };
}