mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
fetchFromGitHub,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
|
static ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
@ -14,13 +15,20 @@ stdenvNoCC.mkDerivation rec {
|
||||||
owner = "notofonts";
|
owner = "notofonts";
|
||||||
repo = "noto-cjk";
|
repo = "noto-cjk";
|
||||||
rev = "Sans${version}";
|
rev = "Sans${version}";
|
||||||
hash = "sha256-IgalJkiOAVjNxKaPAQWfb5hKeqclliR4qVXCq63FGWY=";
|
hash = "sha256-i3ZKoSy2SVs46IViha+Sg8atH4n3ywgrunHPLtVT4Pk=";
|
||||||
sparseCheckout = [ "Sans/Variable/OTC" ];
|
sparseCheckout = [
|
||||||
|
"Sans/OTC"
|
||||||
|
"Sans/Variable/OTC"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
install -m444 -Dt $out/share/fonts/opentype/noto-cjk Sans/Variable/OTC/*.otf.ttc
|
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;
|
passthru.tests.noto-fonts = nixosTests.noto-fonts;
|
||||||
|
|
||||||
|
|
|
@ -11725,6 +11725,10 @@ with pkgs;
|
||||||
static = true;
|
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 {
|
noto-fonts-lgc-plus = callPackage ../by-name/no/noto-fonts/package.nix {
|
||||||
suffix = "-lgc-plus";
|
suffix = "-lgc-plus";
|
||||||
variants = [
|
variants = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue