mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
34 lines
799 B
Nix
34 lines
799 B
Nix
{
|
|
fetchurl,
|
|
stdenvNoCC,
|
|
lib,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "rime-zhwiki";
|
|
version = "20240909";
|
|
src = fetchurl {
|
|
url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.5/zhwiki-20240909.dict.yaml";
|
|
hash = "sha256-ZQ8orW7jEbPtOEvYYxdnTJGTwdXVZBEWjUMYR93vOCE=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/rime-data
|
|
cp $src $out/share/rime-data/zhwiki.dict.yaml
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ xddxdd ];
|
|
description = "RIME dictionary file for entries from zh.wikipedia.org";
|
|
homepage = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki";
|
|
license = [
|
|
lib.licenses.fdl13Plus
|
|
lib.licenses.cc-by-sa-40
|
|
];
|
|
};
|
|
}
|