
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
50 lines
1.5 KiB
Nix
50 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "comic-relief";
|
|
version = "1.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
|
|
stripRoot = false;
|
|
hash = "sha256-lvkMfaQvLMZ8F0Q5JnpmMsIAkR+XfihoHIoS4z5QEvA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
mkdir -p $out/share/doc/${pname}-${version}
|
|
mkdir -p $out/share/fonts/truetype
|
|
cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
|
|
cp *.ttf -d $out/share/fonts/truetype
|
|
cp FONTLOG.txt -d $out/share/doc/${pname}-${version}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://fontlibrary.org/en/font/comic-relief";
|
|
description = "Font metric-compatible with Microsoft Comic Sans";
|
|
longDescription = ''
|
|
Comic Relief is a typeface designed to be metrically equivalent
|
|
to the popular Comic Sans MS. Comic Relief can be used in place
|
|
of Comic Sans MS without having to move, resize, or reset any
|
|
part of the copy. It contains all glyphs and characters
|
|
available in Comic Sans MS.
|
|
'';
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
# Reduce the priority of this package. The intent is that if you
|
|
# also install the `corefonts` package, then you probably will not
|
|
# want to install the font alias of this package.
|
|
priority = 10;
|
|
};
|
|
}
|