sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / jp / jp-zip-codes / package.nix
blob297f49edece1378470677216efedea5a5ef4b1ff
2   lib,
3   fetchFromGitHub,
4   stdenvNoCC,
5   nix-update-script,
6 }:
8 stdenvNoCC.mkDerivation {
9   pname = "jp-zip-code";
10   version = "0-unstable-2025-01-01";
12   # This package uses a mirror as the source because the
13   # original provider uses the same URL for updated content.
14   src = fetchFromGitHub {
15     owner = "musjj";
16     repo = "jp-zip-codes";
17     rev = "45aa11f1f60515893b0eb8f533f540632b394564";
18     hash = "sha256-qcP1lc5E1RS+n7e3hmZwaHtnf9ErOYprW+/w0r65ZuI=";
19   };
21   installPhase = ''
22     runHook preInstall
23     install -Dt $out ken_all.zip
24     install -Dt $out jigyosyo.zip
25     runHook postInstall
26   '';
28   passthru.updateScript = nix-update-script {
29     extraArgs = [
30       "--version"
31       "branch"
32     ];
33   };
35   meta = {
36     description = "Zip files containing japanese zip codes";
37     longDescription = "Zip files with japanese zip codes for japanese IME dictionaries";
38     homepage = "https://github.com/musjj/jp-zip-codes";
39     license = lib.licenses.publicDomain;
40     maintainers = with lib.maintainers; [ pineapplehunter ];
41     platforms = lib.platforms.all;
42     # this does not need to be separately built
43     # it only provides some zip files
44     hydraPlatforms = [ ];
45   };