2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2018-06-30 21:39:12 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "source-han-code-jp";
|
2021-10-30 06:20:00 +02:00
|
|
|
version = "2.012R";
|
2018-06-30 21:39:12 +02:00
|
|
|
in fetchzip {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/adobe-fonts/${pname}/archive/${version}.zip";
|
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
|
2021-10-30 06:20:00 +02:00
|
|
|
sha256 = "16y5as1k864ghy3vzp8svr3q0sw57rv53za3f48700ksvxz5pwry";
|
2018-06-30 21:39:12 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A monospaced Latin font suitable for coding";
|
2019-05-13 03:55:32 +02:00
|
|
|
maintainers = with lib.maintainers; [ mt-caret ];
|
|
|
|
platforms = with lib.platforms; all;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html";
|
2019-05-13 03:55:32 +02:00
|
|
|
license = lib.licenses.ofl;
|
2018-06-30 21:39:12 +02:00
|
|
|
};
|
|
|
|
}
|