nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation {
4 pname = "ipafont";
5 version = "003.03";
6
7 src = fetchzip {
8 url = "https://moji.or.jp/wp-content/ipafont/IPAfont/IPAfont00303.zip";
9 hash = "sha256-EzUNKuDNHr0NIXiqX09w99wtz1r2pZurR/izdgzTcAs=";
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 = {
21 description = "Japanese font package with Mincho and Gothic fonts";
22 longDescription = ''
23 IPAFont 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 homepage = "https://moji.or.jp/ipafont/";
28 license = lib.licenses.ipa;
29 maintainers = [ lib.maintainers.auntie ];
30 };
31}