summary refs log tree commit diff
path: root/pkgs/data/fonts/source-han-code-jp/default.nix
blob: 5960e4fb6ea4d68182f4ce0ba803ee531244d398 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, fetchzip }:

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";
    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;
  };
}