Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
33 lines
862 B
Nix
33 lines
862 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
stdenvNoCC,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "fcitx5-pinyin-zhwiki";
|
|
version = "0.2.5";
|
|
date = "20240909";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/${finalAttrs.version}/zhwiki-${finalAttrs.date}.dict";
|
|
hash = "sha256-djXrwl1MmiAf0U5Xvm4S7Fk2fKNRm5jtc94KUYIrcm8=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 $src $out/share/fcitx5/pinyin/dictionaries/zhwiki.dict
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Fcitx 5 pinyin dictionary from zh.wikipedia.org";
|
|
homepage = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki";
|
|
license = with lib.licenses; [ unlicense cc-by-sa-40 ];
|
|
maintainers = with lib.maintainers; [ Guanran928 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|