mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
noto-fonts-cjk-sans-static: init at Serif2.004
This commit is contained in:
parent
f4c05f860f
commit
e95fcea8d8
2 changed files with 17 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue