mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
Merge pull request #42827 from mt-caret/master
source-han-code-jp: init at 2.011R
This commit is contained in:
commit
a444ed3870
25
pkgs/data/fonts/source-han-code-jp/default.nix
Normal file
25
pkgs/data/fonts/source-han-code-jp/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, 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 stdenv.lib.maintainers; [ mt-caret ];
|
||||
platforms = with stdenv.lib.platforms; all;
|
||||
homepage = https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html;
|
||||
license = stdenv.lib.licenses.ofl;
|
||||
};
|
||||
}
|
|
@ -14924,6 +14924,8 @@ with pkgs;
|
|||
|
||||
source-serif-pro = callPackage ../data/fonts/source-serif-pro { };
|
||||
|
||||
source-han-code-jp = callPackage ../data/fonts/source-han-code-jp { };
|
||||
|
||||
sourceHanSansPackages = callPackage ../data/fonts/source-han-sans { };
|
||||
source-han-sans-japanese = sourceHanSansPackages.japanese;
|
||||
source-han-sans-korean = sourceHanSansPackages.korean;
|
||||
|
|
Loading…
Reference in a new issue