linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / by-name / ri / rime-data / package.nix
blob15c33238e8da3e2f11718d08ca2ad41c0238acc9
1 { lib, stdenv, fetchFromGitHub, librime }:
3 stdenv.mkDerivation {
4   pname = "rime-data";
5   version = "0.38.20231116";
7   src = fetchFromGitHub {
8     owner = "rime";
9     repo = "plum";
10     rev = "6f502ff6fa87789847fa18200415318e705bffa4";
11     sha256 = "sha256-DNSLP0dzzgJ6XzwvxGPeRqRrRIUV/GwD2+8cz9bYAwA=";
12   };
14   buildInputs = [ librime ];
16   buildFlags = [ "all" ];
17   makeFlags = [ "PREFIX=$(out)" ];
19   preBuild = import ./fetchSchema.nix fetchFromGitHub;
21   postPatch = ''
22     # Disable git operations.
23     sed -i /fetch_or_update_package$/d scripts/install-packages.sh
24   '';
26   meta = with lib; {
27     description = "Schema data of Rime Input Method Engine";
28     longDescription = ''
29       Rime-data provides schema data for Rime Input Method Engine.
30     '';
31     homepage = "https://rime.im";
32     license = with licenses; [
33       # rime-array
34       # rime-combo-pinyin
35       # rime-double-pinyin
36       # rime-middle-chinese
37       # rime-scj
38       # rime-soutzoe
39       # rime-stenotype
40       # rime-wugniu
41       gpl3Only
43       # plum
44       # rime-bopomofo
45       # rime-cangjie
46       # rime-emoji
47       # rime-essay
48       # rime-ipa
49       # rime-jyutping
50       # rime-luna-pinyin
51       # rime-prelude
52       # rime-quick
53       # rime-stroke
54       # rime-terra-pinyin
55       # rime-wubi
56       lgpl3Only
58       # rime-pinyin-simp
59       asl20
61       # rime-cantonese
62       cc-by-40
63     ];
64     maintainers = with maintainers; [ pmy ];
65   };