
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
49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{
|
||
lib,
|
||
stdenv,
|
||
fetchFromGitHub,
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "sarabun";
|
||
version = "unstable-2018-08-24";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "cadsondemak";
|
||
repo = pname;
|
||
rev = "854cdbc6afa002ff8c2ce6aa7b86f99c7f71c9eb";
|
||
sha256 = "jcSQ72WK0GucZPgG7IQKrKzCOEbGgbQVl21RIKSF6A0=";
|
||
};
|
||
|
||
outputs = [
|
||
"out"
|
||
"doc"
|
||
];
|
||
|
||
buildPhase = ''
|
||
mkdir -p $doc/${pname} $out/share/fonts/truetype
|
||
|
||
cp -r $src/OFL.txt $src/docs/* $doc/${pname}
|
||
cp $src/fonts/*.ttf $out/share/fonts/truetype
|
||
'';
|
||
|
||
meta = {
|
||
homepage = "https://cadsondemak.github.io/${pname}/";
|
||
description = "Slightly-condensed looped Thai and sans serif Latin typeface for communications";
|
||
longDescription = ''
|
||
The most popular typeface from the 13 fonts from SIPA Thailand’s National
|
||
fonts project. Sarabun was designed by Suppakit Chalermlarp to be a
|
||
serious text face. Great choice for a long reading formal text. This font
|
||
was selected by the royal Thai government to be the official typeface for
|
||
documentation purpose. It was also adopted by many private organizations
|
||
to be used as a communication font. Sarabun has a slightly condensed
|
||
proportion which fits perfectly with Thai legibility. It also carries a
|
||
neutral Thai traditional loop design which can easily fit in with any
|
||
occasion. Probably one of the most today’s familiar Thai loop typefaces.
|
||
'';
|
||
license = lib.licenses.ofl;
|
||
platforms = lib.platforms.all;
|
||
maintainers = with lib.maintainers; [ toastal ];
|
||
};
|
||
}
|