nixpkgs/pkgs/by-name/jp/jp-zip-codes/package.nix

47 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
stdenvNoCC,
nix-update-script,
}:
stdenvNoCC.mkDerivation {
pname = "jp-zip-code";
version = "0-unstable-2024-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 = "94ddc993224a6e2c65480f9109564f7f68125665";
hash = "sha256-/2f/HXxrxKc6dv5E67S59xIpdJUkh0fX0lyTuo2y1N4=";
};
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 = [ ];
};
}