File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
pkgs/by-name/ri/rime-zhwiki Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ fetchurl ,
3+ stdenvNoCC ,
4+ lib ,
5+ } :
6+ stdenvNoCC . mkDerivation {
7+ pname = "rime-zhwiki" ;
8+ version = "20240909" ;
9+ src = fetchurl {
10+ url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.5/zhwiki-20240909.dict.yaml" ;
11+ hash = "sha256-ZQ8orW7jEbPtOEvYYxdnTJGTwdXVZBEWjUMYR93vOCE=" ;
12+ } ;
13+
14+ dontUnpack = true ;
15+ installPhase = ''
16+ runHook preInstall
17+
18+ mkdir -p $out/share/rime-data
19+ cp $src $out/share/rime-data/zhwiki.dict.yaml
20+
21+ runHook postInstall
22+ '' ;
23+
24+ meta = {
25+ maintainers = with lib . maintainers ; [ xddxdd ] ;
26+ description = "RIME dictionary file for entries from zh.wikipedia.org" ;
27+ homepage = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki" ;
28+ license = [
29+ lib . licenses . fdl13Plus
30+ lib . licenses . cc-by-sa-40
31+ ] ;
32+ } ;
33+ }
You can’t perform that action at this time.
0 commit comments