2019-05-13 04:55:32 +03:00
|
|
|
{ lib, fetchzip }:
|
2018-06-30 22:39:12 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "source-han-code-jp";
|
|
|
|
version = "2.011R";
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
sha256 = "184vrjkymcm29k1cx00cdvjchzqr1w17925lmh85f0frx7vwljcd";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A monospaced Latin font suitable for coding";
|
2019-05-13 04:55:32 +03:00
|
|
|
maintainers = with lib.maintainers; [ mt-caret ];
|
|
|
|
platforms = with lib.platforms; all;
|
2018-06-30 22:39:12 +03:00
|
|
|
homepage = https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html;
|
2019-05-13 04:55:32 +03:00
|
|
|
license = lib.licenses.ofl;
|
2018-06-30 22:39:12 +03:00
|
|
|
};
|
|
|
|
}
|