about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ji/jigmo/package.nix
blob: 18c84916dbf5a173dbaefdf318ace79534f28825 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "jigmo";
  version = "20230816";

  src = fetchzip {
    url = "https://kamichikoichi.github.io/jigmo/Jigmo-${version}.zip";
    hash = "sha256-wBec7IiUneqCEyY704Wi6F6WG0Z1KK7gBGcJhRjrRDc=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.ttf -t $out/share/fonts/truetype/

    runHook postInstall
  '';

  meta = with lib; {
    description = "Japanese Kanji font set which is the official successor to Hanazono Mincho";
    homepage = "https://kamichikoichi.github.io/jigmo/";
    license = licenses.cc0;
    maintainers = [ maintainers.marsam ];
    platforms = platforms.all;
  };
}