
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
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{
|
||
lib,
|
||
stdenvNoCC,
|
||
fetchFromGitHub,
|
||
}:
|
||
|
||
stdenvNoCC.mkDerivation rec {
|
||
pname = "cabin";
|
||
version = "1.005";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "impallari";
|
||
repo = "Cabin";
|
||
rev = "982839c790e9dc57c343972aa34c51ed3b3677fd";
|
||
hash = "sha256-9l4QcwCot340Bq41ER68HSZGQ9h0opyzgG3DG/fVZ5s=";
|
||
};
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf
|
||
install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
meta = with lib; {
|
||
description = "Humanist sans with 4 weights and true italics";
|
||
longDescription = ''
|
||
The Cabin font family is a humanist sans with 4 weights and true italics,
|
||
inspired by Edward Johnston’s and Eric Gill’s typefaces, with a touch of
|
||
modernism. Cabin incorporates modern proportions, optical adjustments, and
|
||
some elements of the geometric sans. It remains true to its roots, but has
|
||
its own personality.
|
||
|
||
The weight distribution is almost monotone, although top and bottom curves
|
||
are slightly thin. Counters of the b, g, p and q are rounded and optically
|
||
adjusted. The curved stem endings have a 10 degree angle. E and F have
|
||
shorter center arms. M is splashed.
|
||
'';
|
||
homepage = "http://www.impallari.com/cabin";
|
||
license = licenses.ofl;
|
||
maintainers = with maintainers; [ cmfwyp ];
|
||
platforms = platforms.all;
|
||
};
|
||
}
|