diff --git a/pkgs/development/libraries/qtspell/default.nix b/pkgs/development/libraries/qtspell/default.nix new file mode 100644 index 000000000000..1e5069d8b5d8 --- /dev/null +++ b/pkgs/development/libraries/qtspell/default.nix @@ -0,0 +1,55 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + doxygen, + enchant, + glib, + llvmPackages, + pkg-config, + qtbase, + qttools, +}: + +stdenv.mkDerivation rec { + pname = "qtspell"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "manisandro"; + repo = "qtspell"; + rev = "${version}"; + hash = "sha256-yaR3eCUbK2KTpvzO2G5sr+NEJ2mDnzJzzzwlU780zqU="; + }; + + nativeBuildInputs = [ + cmake + doxygen + pkg-config + qttools + ]; + + buildInputs = + [ + enchant + qtbase + ] + ++ lib.optionals stdenv.isDarwin [ + glib + llvmPackages.clang + ]; + + cmakeFlags = [ "-DQT_VER=6" ]; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Provides spell-checking to Qt's text widgets, using the enchant spell-checking library"; + homepage = "https://github.com/manisandro/qtspell"; + changelog = "https://github.com/manisandro/qtspell/blob/version/NEWS"; + maintainers = with maintainers; [ dansbandit ]; + license = licenses.gpl3Only; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/qt6-packages.nix b/pkgs/top-level/qt6-packages.nix index 366fa799fa0e..2e15947efd49 100644 --- a/pkgs/top-level/qt6-packages.nix +++ b/pkgs/top-level/qt6-packages.nix @@ -90,6 +90,8 @@ makeScopeWithSplicing' { qscintilla = callPackage ../development/libraries/qscintilla { }; + qtspell = callPackage ../development/libraries/qtspell { }; + qwlroots = callPackage ../development/libraries/qwlroots { wlroots = pkgs.wlroots_0_17; };