base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / so / source-han-code-jp / package.nix
blob5c00f564320b338d8fc6da9ae92cae946a5c86ea
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "source-han-code-jp";
5   version = "2.012";
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   };
12   installPhase = ''
13     runHook preInstall
15     install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
17     runHook postInstall
18   '';
20   meta = {
21     description = "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   };