Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 882 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 extra-cmake-modules, 7 fcitx5, 8 fcitx5-qt, 9 gettext, 10 qtbase, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "fcitx5-unikey"; 15 version = "5.1.6"; 16 17 src = fetchFromGitHub { 18 owner = "fcitx"; 19 repo = "fcitx5-unikey"; 20 rev = version; 21 hash = "sha256-hx3GXoloO3eQP9yhLY8v1ahwvOTCe5XcBey+ZbReRjE="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 extra-cmake-modules 27 gettext # msgfmt 28 ]; 29 30 buildInputs = [ 31 qtbase 32 fcitx5 33 fcitx5-qt 34 ]; 35 36 cmakeFlags = [ 37 (lib.cmakeBool "USE_QT6" (lib.versions.major qtbase.version == "6")) 38 ]; 39 40 dontWrapQtApps = true; 41 42 meta = with lib; { 43 description = "Unikey engine support for Fcitx5"; 44 homepage = "https://github.com/fcitx/fcitx5-unikey"; 45 license = licenses.gpl2Plus; 46 maintainers = with maintainers; [ berberman ]; 47 platforms = platforms.linux; 48 }; 49}