Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 55 lines 1.0 kB view raw
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.1"; 18 19 src = fetchFromGitHub { 20 owner = "manisandro"; 21 repo = "qtspell"; 22 rev = "${version}"; 23 hash = "sha256-yaR3eCUbK2KTpvzO2G5sr+NEJ2mDnzJzzzwlU780zqU="; 24 }; 25 26 nativeBuildInputs = [ 27 cmake 28 doxygen 29 pkg-config 30 qttools 31 ]; 32 33 buildInputs = 34 [ 35 enchant 36 qtbase 37 ] 38 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 39 glib 40 llvmPackages.clang 41 ]; 42 43 cmakeFlags = [ "-DQT_VER=6" ]; 44 45 dontWrapQtApps = true; 46 47 meta = with lib; { 48 description = "Provides spell-checking to Qt's text widgets, using the enchant spell-checking library"; 49 homepage = "https://github.com/manisandro/qtspell"; 50 changelog = "https://github.com/manisandro/qtspell/blob/version/NEWS"; 51 maintainers = with maintainers; [ dansbandit ]; 52 license = licenses.gpl3Only; 53 platforms = platforms.all; 54 }; 55}