Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 doxygen, 7 enchant, 8 glib, 9 llvmPackages, 10 pkg-config, 11 qtbase, 12 qttools, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "qtspell"; 17 version = "1.0.2"; 18 19 src = fetchFromGitHub { 20 owner = "manisandro"; 21 repo = "qtspell"; 22 rev = "${version}"; 23 hash = "sha256-OuEGY+0XJo3EUUcH8xAzlgE6zKPndBvG0arWhG/QO6Y="; 24 }; 25 26 nativeBuildInputs = [ 27 cmake 28 doxygen 29 pkg-config 30 qttools 31 ]; 32 33 buildInputs = [ 34 enchant 35 qtbase 36 ] 37 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 38 glib 39 llvmPackages.clang 40 ]; 41 42 cmakeFlags = [ "-DQT_VER=6" ]; 43 44 dontWrapQtApps = true; 45 46 meta = with lib; { 47 description = "Provides spell-checking to Qt's text widgets, using the enchant spell-checking library"; 48 homepage = "https://github.com/manisandro/qtspell"; 49 changelog = "https://github.com/manisandro/qtspell/blob/version/NEWS"; 50 maintainers = with maintainers; [ dansbandit ]; 51 license = licenses.gpl3Only; 52 platforms = platforms.all; 53 }; 54}