1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "source-han-code-jp";
5 version = "2.012";
6
7 src = fetchzip {
8 url = "https://github.com/adobe-fonts/${pname}/archive/${version}R.zip";
9 hash = "sha256-ljO/1/CaE9Yj+AN5xxlIr30/nV/axGQPO0fGACAZGCQ=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
16
17 runHook postInstall
18 '';
19
20 meta = {
21 description = "A monospaced Latin font suitable for coding";
22 maintainers = with lib.maintainers; [ mt-caret ];
23 platforms = with lib.platforms; all;
24 homepage = "https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html";
25 license = lib.licenses.ofl;
26 };
27}