mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
fcitx5-pinyin-minecraft: init at 0.1.20240629
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
parent
a3000ac8ff
commit
2ce0bf0eb2
35
pkgs/by-name/fc/fcitx5-pinyin-minecraft/package.nix
Normal file
35
pkgs/by-name/fc/fcitx5-pinyin-minecraft/package.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
nix-update-script,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "fcitx5-pinyin-minecraft";
|
||||
version = "0.1.20240629";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/oldherl/fcitx5-pinyin-minecraft/releases/download/${finalAttrs.version}/minecraft-cn.dict";
|
||||
hash = "sha256-uD/ADL+JGdSYiNz6XIqJB0Y0IU6Jf56q5g7xG2o3a+E=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 $src $out/share/fcitx5/pinyin/dictionaries/minecraft.dict
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Fcitx 5 pinyin dictionary from zh.minecraft.wiki";
|
||||
homepage = "https://github.com/oldherl/fcitx5-pinyin-minecraft";
|
||||
license = with lib.licenses; [ unlicense cc-by-nc-sa-30 ];
|
||||
maintainers = with lib.maintainers; [ Guanran928 ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue