Commit 92f7d4b3 authored by Naoki OKAMURA's avatar Naoki OKAMURA

improved: use last noto fonts for japanese

parent 0b1a200b
......@@ -2,7 +2,7 @@
{
fonts = {
fonts = with pkgs; [
noto-fonts-cjk-jp noto-fonts-emoji
noto-fonts noto-fonts-jp noto-fonts-extra noto-fonts-emoji
myrica myrica-patched genjyuu-gothic
];
......@@ -11,8 +11,8 @@
penultimate.enable = true;
defaultFonts = {
sansSerif = [ "Noto Sans CJK JP" "Noto Color Emoji" ];
serif = [ "Noto Serif CJK JP" "Noto Color Emoji" ];
sansSerif = [ "Noto Sans JP" "Noto Color Emoji" ];
serif = [ "Noto Serif JP" "Noto Color Emoji" ];
monospace = [ "Myrica M Patched" "Noto Sans Mono CJK JP" "Noto Color Emoji" ];
};
};
......
{ stdenv, fetchurl }:
let
fonts = [
{ name = "NotoSansCJKjp-Black" ; sha256 = "0qw0m62xrc4jg10y27x3vwmp3axq046vg0jyayc2r1fc633dp1kd"; }
{ name = "NotoSansCJKjp-Bold" ; sha256 = "0x1m3agz8m1vmm5p6wp28kvqax36zqki7601s88qxlx2dvhm5qvj"; }
{ name = "NotoSansCJKjp-DemiLight" ; sha256 = "1dpjxsfd7sr8mdbq2lgr1cb4m53xzrd6cbqj0z9fa0gni9xswc95"; }
{ name = "NotoSansCJKjp-Light" ; sha256 = "19kjknjhpngaxnv5f3vhpfzz7yhf9zp1awj17cciip5fks4sw5ia"; }
{ name = "NotoSansCJKjp-Medium" ; sha256 = "028m87ydcrxrf063mzv5scm6xc41nxw28svhilmxcczmizvp38h1"; }
{ name = "NotoSansCJKjp-Regular" ; sha256 = "1jbjb36zwyf7jmv3fl33palfdr4ci7l0znk74y6qnw18v11q5ydq"; }
{ name = "NotoSansCJKjp-Thin" ; sha256 = "107kf4mmkb6swvj95f6zjbw40ga42fxl2lw37pci85lkydk7swqp"; }
{ name = "NotoSansJP-Black"; sha256 = "1mxfi76g2bdbjwg7370ms2ifq53lvzrnf7kkk47928yljdd1z2i5"; }
{ name = "NotoSansJP-Bold"; sha256 = "0kr2fic5j9h6i7f3yqwck5lcxnfcv0amsw03kx7bgh3jcdjid1h4"; }
{ name = "NotoSansJP-DemiLight"; sha256 = "13kclx4p7vrn399hdivns0fwh7f8d150gjhl1xkmlxl128bz4ln0"; }
{ name = "NotoSansJP-Light"; sha256 = "04aaq4m76a76i0j0ngza9zafhnlm687cv5pij5dqlg4fg721fkcf"; }
{ name = "NotoSansJP-Medium"; sha256 = "1ply2zzp1z26caclwqbz3hmp6kvg3l8w9y3y6isn1sdmk8r8anx6"; }
{ name = "NotoSansJP-Regular"; sha256 = "19k1n95mipkzkzkx0ivqssca6b5m7sjyvzq46gjnmg76h6brrcwv"; }
{ name = "NotoSansJP-Thin"; sha256 = "1ndrnbf1cyjqgs61yypb71cni00ypr950qr4ri218dx4zlxx1d2w"; }
{ name = "NotoSansMonoCJKjp-Bold" ; sha256 = "0wf8j03h8hw2h43vas1igm8gxdhjjqbfzi8vx7l93kbipqnsal6j"; }
{ name = "NotoSansMonoCJKjp-Regular" ; sha256 = "0psir4w7r09zijw3rh25rjxs3hacam500ws9qfxpkkgv0rgw4qfj"; }
{ name = "NotoSansMonoCJKjp-Bold"; sha256 = "0vdqyvqvaj7jda0rr1bz7a05wjs1s08d4jippaffvrikhwnxpsly"; }
{ name = "NotoSansMonoCJKjp-Regular"; sha256 = "0wlrw6aclgg6fgz01vn55rf8jw0zban1zv114slv53qr1qlwrfva"; }
{ name = "NotoSerifCJKjp-Black" ; sha256 = "1xyi3gx5ygd3r8gmqzqrj3gb4g63swfjslzssh7wz9z0wv7vvd0d"; }
{ name = "NotoSerifCJKjp-Bold" ; sha256 = "1wycqbdia4vix1xvh20plsgnjxq3irya0y9bgrnikizdnfm4p4sq"; }
{ name = "NotoSerifCJKjp-ExtraLight" ; sha256 = "14lfpmcgkhw7v7mvcj9jaachvyryaf4fy66bws17f891shm6xrf1"; }
{ name = "NotoSerifCJKjp-Light" ; sha256 = "05c7jzi1kcjx1r6cry04df47lmq3lvqbb9pi9as6xbn2sxxc4pj8"; }
{ name = "NotoSerifCJKjp-Medium" ; sha256 = "1w1qm45xqm9wc0qc2801mws0lv0b90z3jd21a31ch4ib3hfyq728"; }
{ name = "NotoSerifCJKjp-Regular" ; sha256 = "126zgi2in71p4mvca25kd75l6msp1z8342qv066vdg6jkdxj9h3r"; }
{ name = "NotoSerifCJKjp-SemiBold" ; sha256 = "1ni1g010lwkbfzwnxbv5fda6nn3als6qqz4py2j3nn608xdh4q2s"; }
{ name = "NotoSerifJP-Black"; sha256 = "0h4s9k245cbjylvnlm1y3xnbd5sk2yjf66d6dqcxrfrbwnw3ljc2"; }
{ name = "NotoSerifJP-Bold"; sha256 = "10r489hm09qn3l4cj40qmpgqijrbfhwmhfirzdh321cnhi26gyrn"; }
{ name = "NotoSerifJP-ExtraLight"; sha256 = "0nfvbxcmhpbjz516x8l804py63gcqxhn2hn2cxkp3mgsklqzzwfp"; }
{ name = "NotoSerifJP-Light"; sha256 = "0pl8bq3axlbjr6il2gjf27bg68r36p5k60v4fk0p6hp7wpqrq313"; }
{ name = "NotoSerifJP-Medium"; sha256 = "1cbxml3ih4hpmdhz4zdccw59xni89ahx63wlc0iz5m055cylvlga"; }
{ name = "NotoSerifJP-Regular"; sha256 = "17cdbbgda7d635qc5wschb95lgkn1xsnyb6m3j8gfy9rvvf7aa51"; }
{ name = "NotoSerifJP-SemiBold"; sha256 = "1l1zf1gf9g5s7sy3awfd9r4vdd81r0ignpixm4x525rpq6qki2jd"; }
];
in
stdenv.mkDerivation rec {
name = "noto-fonts-cjk-jp-git";
version = "2.000";
in stdenv.mkDerivation rec {
version = "V2.0001";
name = "noto-fonts-jp-${version}";
files = map ({ name, sha256 }: fetchurl {
url = "https://raw.githubusercontent.com/googlei18n/noto-cjk/master/${name}.otf";
sha256 = "${sha256}";
url = "https://raw.githubusercontent.com/googlefonts/noto-cjk/NotoSans${version}/${name}.otf";
inherit sha256;
}) fonts;
unpackPhase = ''
mkdir -p noto
${stdenv.lib.strings.concatMapStrings (font: ''
cp ${font} noto
cp ${font} noto
'') files}
'';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment