1 { lib, stdenv, fetchurl, dpkg }:
3 let version = "20030809";
6 pname = "kochi-substitute";
10 url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-gothic_${version}-15_all.deb";
11 sha256 = "6e2311cd8e880a9328e4d3eef34a1c1f024fc87fba0dce177a0e1584a7360fea";
15 url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-mincho_${version}-15_all.deb";
16 sha256 = "91ce6c993a3a0f77ed85db76f62ce18632b4c0cbd8f864676359a17ae5e6fa3c";
19 nativeBuildInputs = [ dpkg ];
22 dpkg-deb --fsys-tarfile $src | tar xf - ./usr/share/fonts/truetype/kochi/kochi-gothic-subst.ttf
23 dpkg-deb --fsys-tarfile $src2 | tar xf - ./usr/share/fonts/truetype/kochi/kochi-mincho-subst.ttf
27 mkdir -p $out/share/fonts/truetype
28 cp ./share/fonts/truetype/kochi/kochi-gothic-subst.ttf $out/share/fonts/truetype/
29 cp ./share/fonts/truetype/kochi/kochi-mincho-subst.ttf $out/share/fonts/truetype/
32 outputHashAlgo = "sha256";
33 outputHashMode = "recursive";
34 outputHash = "10hcrf51npc1w2jsz5aiw07dgw96vs4wmsz4ai9zyaswipvf8ddy";
37 description = "Japanese font, a free replacement for MS Gothic and MS Mincho";
39 Kochi Gothic and Kochi Mincho were developed as free replacements for the
40 MS Gothic and MS Mincho fonts from Microsoft. These are the Debian
41 versions of the fonts, which remove some non-free glyphs that were added
44 homepage = "https://osdn.net/projects/efont/";
45 license = lib.licenses.wadalab;
46 maintainers = [ lib.maintainers.auntie ];