mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
35 lines
875 B
Nix
35 lines
875 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
nix-update-script,
|
|
stdenvNoCC,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "fcitx5-pinyin-moegirl";
|
|
version = "20240709";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/outloudvi/mw2fcitx/releases/download/${finalAttrs.version}/moegirl.dict";
|
|
hash = "sha256-1BNfyMM7T19glWsB9oOOMHEWc+SE/qrxx5rsAz386Os=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|