nixpkgs/pkgs/data/fonts/source-han-code-jp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
711 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2018-06-30 19:39:12 +00:00
stdenvNoCC.mkDerivation rec {
2018-06-30 19:39:12 +00:00
pname = "source-han-code-jp";
version = "2.012";
2018-06-30 19:39:12 +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
2018-06-30 19:39:12 +00:00
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
runHook postInstall
'';
2018-06-30 19:39:12 +00:00
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;
2018-06-30 19:39:12 +00:00
};
}