13 url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-core.zip";
14 hash = "sha256-wLcRhR4TCazRxDMKXYZ8T5Vn+rnY6aJmwExIpTIAyeE=";
17 url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-small.zip";
18 hash = "sha256-Qhp9seFCnLnLLWoQ2izDVKcdca+xZE1s+SCqfj0d3sU=";
21 url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-full.zip";
22 hash = "sha256-8nlUDGHUKrZ0ZFEnnL4rHiu2ybyW25G6Bm6vF4smxWE=";
27 lib.checkListOfEnum "${pname}: dict-type" [ "core" "full" "small" ] [ dict-type ]
29 stdenvNoCC.mkDerivation {
30 inherit pname version;
32 src = srcs.${dict-type};
41 install -Dm644 system_${dict-type}.dic $out/share/system.dic
47 dict-type = dict-type;
51 description = "Lexicon for Sudachi";
52 homepage = "https://github.com/WorksApplications/SudachiDict";
53 changelog = "https://github.com/WorksApplications/SudachiDict/releases/tag/v${version}";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ natsukium ];
56 platforms = platforms.all;
57 # it is a waste of space and time to build this package in hydra since it is just data