mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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-2024-09-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 = "995d7cce9ae68a31efe4b5882137dd67ac26f7ff";
|
|
hash = "sha256-VnzczwIbYPUpWpWLMm2TYGqiDxzZaDDKs7xh4F3xA0E=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|