2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "source-han-code-jp";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.012";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/adobe-fonts/${pname}/archive/${version}R.zip";
|
|
|
|
hash = "sha256-ljO/1/CaE9Yj+AN5xxlIr30/nV/axGQPO0fGACAZGCQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Monospaced Latin font suitable for coding";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|