depot/third_party/nixpkgs/pkgs/data/fonts/source-han-code-jp/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

25 lines
680 B
Nix

{ lib, fetchzip }:
let
pname = "source-han-code-jp";
version = "2.012R";
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 = "16y5as1k864ghy3vzp8svr3q0sw57rv53za3f48700ksvxz5pwry";
meta = {
description = "A monospaced Latin font suitable for coding";
maintainers = with lib.maintainers; [ mt-caret ];
platforms = with lib.platforms; all;
homepage = "https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html";
license = lib.licenses.ofl;
};
}