nixpkgs/pkgs/by-name/al/alegreya-sans/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
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 b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

42 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "alegreya-sans";
version = "2.008";
src = fetchFromGitHub {
owner = "huertatipografica";
repo = "Alegreya-Sans";
rev = "v${version}";
sha256 = "0xz5lq9fh0pj02ifazhddzh792qkxkz1z6ylj26d93wshc90jl5g";
};
installPhase = ''
install -D -m 444 fonts/otf/* -t $out/share/fonts/otf
install -D -m 444 fonts/ttf/* -t $out/share/fonts/ttf
install -D -m 444 fonts/webfonts/*.woff -t $out/share/fonts/woff
install -D -m 444 fonts/webfonts/*.woff2 -t $out/share/fonts/woff2
'';
meta = with lib; {
description = "Humanist sans serif family with a calligraphic feeling";
longDescription = ''
Alegreya Sans is a humanist sans serif family with a calligraphic feeling that conveys a dynamic and varied rhythm. This gives a pleasant feeling to readers of long texts.
The family follows humanist proportions and principles, just like the serif version of the family, Alegreya. It achieves a ludic and harmonious paragraph through elements carefully designed in an atmosphere of diversity. The italics bring a strong emphasis to the roman styles, and each have seven weights to bring you a wide typographic palette.
Alegreya Sans supports expert latin, greek and cyrillic character sets and provides advanced typography OpenType features such as small caps, dynamic ligatures and fractions, four set of figures, super and subscript characters, ordinals, localized accent forms for spanish, catalan, guaraní, dutch, turkish, romanian, serbian among others.
The Alegreya type system is a "super family", originally intended for literature, and includes sans and serif sister families.
'';
homepage = "https://www.huertatipografica.com/en/fonts/alegreya-sans-ht";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ Thra11 ];
};
}