fcitx5-pinyin-moegirl: init at 20240609

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
Guanran928 2024-06-20 11:16:33 +08:00 committed by Guanran Wang
parent 2ce0bf0eb2
commit 74bc5097dd
No known key found for this signature in database
GPG Key ID: 91F97D9ED12639CF

View File

@ -0,0 +1,35 @@
{
lib,
fetchurl,
nix-update-script,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "fcitx5-pinyin-moegirl";
version = "20240609";
src = fetchurl {
url = "https://github.com/outloudvi/mw2fcitx/releases/download/${finalAttrs.version}/moegirl.dict";
hash = "sha256-dXFV0kVr8hgT17Jmr28PiYTiELm8kS/KM71igHXA6hs=";
};
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;
};
})