mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #321149 from Guanran928/fcitx5-pinyin-dictionary
fcitx5-pinyin-{minecraft,moegirl,zhwiki}: init
This commit is contained in:
commit
b1ef6b37e8
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;
|
||||
};
|
||||
})
|
35
pkgs/by-name/fc/fcitx5-pinyin-moegirl/package.nix
Normal file
35
pkgs/by-name/fc/fcitx5-pinyin-moegirl/package.nix
Normal 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;
|
||||
};
|
||||
})
|
33
pkgs/by-name/fc/fcitx5-pinyin-zhwiki/package.nix
Normal file
33
pkgs/by-name/fc/fcitx5-pinyin-zhwiki/package.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "fcitx5-pinyin-zhwiki";
|
||||
version = "0.2.5";
|
||||
date = "20240509";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/${finalAttrs.version}/zhwiki-${finalAttrs.date}.dict";
|
||||
hash = "sha256-uRpKPq+/xJ8akKB8ol/JRF79VfDIQ8L4SxLDXzpfPxg=";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user