1{ lib, fetchzip }:
2
3let
4 pname = "source-han-code-jp";
5 version = "2.012R";
6in fetchzip {
7 name = "${pname}-${version}";
8
9 url = "https://github.com/adobe-fonts/${pname}/archive/${version}.zip";
10
11 postFetch = ''
12 mkdir -p $out/share/fonts
13 unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
14 '';
15
16 sha256 = "16y5as1k864ghy3vzp8svr3q0sw57rv53za3f48700ksvxz5pwry";
17
18 meta = {
19 description = "A monospaced Latin font suitable for coding";
20 maintainers = with lib.maintainers; [ mt-caret ];
21 platforms = with lib.platforms; all;
22 homepage = "https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html";
23 license = lib.licenses.ofl;
24 };
25}