Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenvNoCC,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "jp-zip-code";
|
|
version = "0-unstable-2025-10-01";
|
|
|
|
# This package uses a mirror as the source because the
|
|
# original provider uses the same URL for updated content.
|
|
src = fetchFromGitHub {
|
|
owner = "musjj";
|
|
repo = "jp-zip-codes";
|
|
rev = "9464f58fe654ada94f6f53e5338b5fb2b15e314a";
|
|
hash = "sha256-G+uCQPW2e/DEAvAx3TYvPt0Dl2rM77WUmuPJ17voxUE=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dt $out ken_all.zip
|
|
install -Dt $out jigyosyo.zip
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"branch"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Zip files containing japanese zip codes";
|
|
longDescription = "Zip files with japanese zip codes for japanese IME dictionaries";
|
|
homepage = "https://github.com/musjj/jp-zip-codes";
|
|
license = lib.licenses.publicDomain;
|
|
maintainers = with lib.maintainers; [ pineapplehunter ];
|
|
platforms = lib.platforms.all;
|
|
# this does not need to be separately built
|
|
# it only provides some zip files
|
|
hydraPlatforms = [ ];
|
|
};
|
|
}
|