noto-fonts-cjk-sans-static: init at Serif2.004 (#355026)

This commit is contained in:
Silvan Mosberger 2025-06-08 16:32:33 +02:00 committed by GitHub
commit 2e862b306e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 5 deletions

View file

@ -4,6 +4,7 @@
fetchFromGitHub,
nixosTests,
gitUpdater,
static ? false,
}:
stdenvNoCC.mkDerivation rec {
@ -14,13 +15,20 @@ stdenvNoCC.mkDerivation rec {
owner = "notofonts";
repo = "noto-cjk";
rev = "Sans${version}";
hash = "sha256-IgalJkiOAVjNxKaPAQWfb5hKeqclliR4qVXCq63FGWY=";
sparseCheckout = [ "Sans/Variable/OTC" ];
hash = "sha256-i3ZKoSy2SVs46IViha+Sg8atH4n3ywgrunHPLtVT4Pk=";
sparseCheckout = [
"Sans/OTC"
"Sans/Variable/OTC"
];
};
installPhase = ''
install -m444 -Dt $out/share/fonts/opentype/noto-cjk Sans/Variable/OTC/*.otf.ttc
'';
installPhase =
let
font-path = if static then "Sans/OTC/*.ttc" else "Sans/Variable/OTC/*.otf.ttc";
in
''
install -m444 -Dt $out/share/fonts/opentype/noto-cjk ${font-path}
'';
passthru.tests.noto-fonts = nixosTests.noto-fonts;

View file

@ -11725,6 +11725,10 @@ with pkgs;
static = true;
};
noto-fonts-cjk-sans-static = callPackage ../by-name/no/noto-fonts-cjk-sans/package.nix {
static = true;
};
noto-fonts-lgc-plus = callPackage ../by-name/no/noto-fonts/package.nix {
suffix = "-lgc-plus";
variants = [