472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
46 lines
1.2 KiB
Nix
46 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 = [ ];
|
|
};
|
|
}
|