noto-fonts-cjk-serif': migrate to by-name

This commit is contained in:
Primrose 2025-05-20 17:07:46 +02:00
parent c7012e7cb6
commit cd080548a7
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 1 additions and 2 deletions

View file

@ -0,0 +1,21 @@
# static version of noto-fonts cjk serif
{
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation rec {
pname = "noto-fonts-cjk-serif";
version = "2.003";
src = fetchFromGitHub {
owner = "notofonts";
repo = "noto-cjk";
rev = "Serif${version}";
hash = "sha256-mfbBSdJrUCZiUUmsmndtEW6H3z6KfBn+dEftBySf2j4=";
sparseCheckout = ["Serif/OTC"];
};
installPhase = ''
install -m444 -Dt $out/share/fonts/opentype/noto-cjk Serif/OTC/*.ttc
'';
}