about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/chewing-editor/default.nix
blob: 9cf163055a4bc2cbe20febc5a3f99ec5c6760f23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, libchewing, qtbase
, qttools }:

mkDerivation rec {
  pname = "chewing-editor";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "chewing";
    repo = pname;
    rev = version;
    sha256 = "0kc2hjx1gplm3s3p1r5sn0cyxw3k1q4gyv08q9r6rs4sg7xh2w7w";
  };

  doCheck = true;

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ libchewing qtbase qttools ];

  meta = with lib; {
    description = "Cross platform chewing user phrase editor";
    mainProgram = "chewing-editor";
    longDescription = ''
      chewing-editor is a cross platform chewing user phrase editor. It provides a easy way to manage user phrase. With it, user can customize their user phrase to increase input performance.
    '';
    homepage = "https://github.com/chewing/chewing-editor";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.ShamrockLee ];
    platforms = platforms.all;
  };
}