mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
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 57b193d8dd
result/bin/apply-formatting $NIXPKGS_PATH
56 lines
1.9 KiB
Nix
56 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
unzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "poly";
|
|
|
|
regular = fetchurl {
|
|
# Finally a mirror that has a sha256 that doesn't change.
|
|
url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Regular.otf";
|
|
sha256 = "1mxp2lvki6b1h7r9xcj1ld0g4z5y3dmsal85xam4yr764zpjzaiw";
|
|
};
|
|
|
|
italic = fetchurl {
|
|
# Finally a mirror that has a sha256 that doesn't change.
|
|
url = "https://googlefontdirectory.googlecode.com/hg-history/d7441308e589c9fa577f920fc4152fa32477a267/poly/src/Poly-Italic.otf";
|
|
sha256 = "1chzcy3kyi7wpr4iq4aj1v24fq1wwph1v5z96dimlqcrnvm66h2l";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts/opentype
|
|
cp ${regular} $out/share/fonts/opentype/Poly-Regular.otf
|
|
cp ${italic} $out/share/fonts/opentype/Poly-Italic.otf
|
|
'';
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "11d7ldryfxi0wzfrg1bhw23a668a44vdb8gggxryvahmp5ahmq2h";
|
|
|
|
meta = {
|
|
description = "Medium contrast serif font";
|
|
longDescription = ''
|
|
With short ascenders and a very high x-height, Poly is efficient in small
|
|
sizes. Thanks to its careful balance between the x-height and glyph widths,
|
|
it allows more economy and legibility than standard web serifs, even in
|
|
small sizes. The aglutinative language for which it was designed contains
|
|
very long words. The goal was to develop a typeface that would tolerate
|
|
cramped tracking and that would increase the number of letters on a single
|
|
line. Poly is a Unicode typeface family that supports Open Type features
|
|
and languages that use the Latin script and its variants.
|
|
'';
|
|
homepage = "http://www.fontsquirrel.com/fonts/poly";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [ relrod ];
|
|
};
|
|
}
|