Skip to content

Commit 503b5b4

Browse files
authored
rime-zhwiki: init at 20240909 (#354931)
2 parents 871087c + fd21459 commit 503b5b4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}

0 commit comments

Comments
 (0)