Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 = [ ];
};
}