nixpkgs/pkgs/data/fonts/cabin/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

43 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 Johnstons and Eric Gills 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;
};
}