2024-06-19 21:16:33 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
nix-update-script,
|
|
|
|
stdenvNoCC,
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "fcitx5-pinyin-moegirl";
|
2024-11-09 05:49:17 -07:00
|
|
|
version = "20241109";
|
2024-06-19 21:16:33 -06:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/outloudvi/mw2fcitx/releases/download/${finalAttrs.version}/moegirl.dict";
|
2024-11-09 05:49:17 -07:00
|
|
|
hash = "sha256-Vg1Kx/7m1gNEJAe3bhxoIogXsNV8I0NYyhGt9SvqfM4=";
|
2024-06-19 21:16:33 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm644 $src $out/share/fcitx5/pinyin/dictionaries/moegirl.dict
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fcitx 5 pinyin dictionary from zh.moegirl.org.cn";
|
|
|
|
homepage = "https://github.com/outloudvi/mw2fcitx";
|
|
|
|
license = with lib.licenses; [ unlicense cc-by-nc-sa-30 ];
|
|
|
|
maintainers = with lib.maintainers; [ Guanran928 ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|