nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation {
4 pname = "ipaexfont";
5 version = "004.01";
6
7 src = fetchzip {
8 url = "https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip";
9 hash = "sha256-/87qJIb+v4qrtDy+ApfXxh59reOk+6RhGqFN98mc+8Q=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 *.ttf -t $out/share/fonts/opentype
16
17 runHook postInstall
18 '';
19
20 meta = with lib; {
21 description = "Japanese font package with Mincho and Gothic fonts";
22 longDescription = ''
23 IPAex font is a Japanese font developed by the Information-technology
24 Promotion Agency of Japan. It provides both Mincho and Gothic fonts,
25 suitable for both display and printing.
26
27 This is the successor to the IPA fonts.
28 '';
29 homepage = "https://moji.or.jp/ipafont/";
30 license = licenses.ipa;
31 maintainers = with maintainers; [ gebner ];
32 };
33}