
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
54 lines
1.6 KiB
Nix
54 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "noto-fonts-cjk-serif";
|
|
version = "2.003";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "notofonts";
|
|
repo = "noto-cjk";
|
|
rev = "Serif${version}";
|
|
hash = "sha256-E+Ic7XhomI6cUa+q77gQvMlaLvy+vgTq4NJ58/nPZtk=";
|
|
sparseCheckout = [ "Serif/Variable/OTC" ];
|
|
};
|
|
|
|
installPhase = ''
|
|
install -m444 -Dt $out/share/fonts/opentype/noto-cjk Serif/Variable/OTC/*.otf.ttc
|
|
'';
|
|
|
|
passthru.tests.noto-fonts = nixosTests.noto-fonts;
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "Serif";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Beautiful and free fonts for CJK languages";
|
|
homepage = "https://www.google.com/get/noto/help/cjk/";
|
|
longDescription = ''
|
|
Noto Serif CJK is a serif typeface designed as
|
|
an intermediate style between the modern and traditional. It is
|
|
intended to be a multi-purpose digital font for user interface
|
|
designs, digital content, reading on laptops, mobile devices, and
|
|
electronic books. Noto Serif CJK comprehensively covers
|
|
Simplified Chinese, Traditional Chinese, Japanese, and Korean in a
|
|
unified font family. It supports regional variants of ideographic
|
|
characters for each of the four languages. In addition, it supports
|
|
Japanese kana, vertical forms, and variant characters (itaiji); it
|
|
supports Korean hangeul — both contemporary and archaic.
|
|
'';
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [
|
|
mathnerd314
|
|
emily
|
|
];
|
|
};
|
|
}
|