567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
971 B
Nix
43 lines
971 B
Nix
{
|
|
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 = {
|
|
description = "Spell checking plugin using Hunspell and HTML5 Notifications plugin for QtWebKit";
|
|
homepage = "https://github.com/QupZilla/qtwebkit-plugins";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|