nixpkgs/pkgs/data/fonts/cabin/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

38 lines
1.3 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, fetchFromGitHub }:
fetchFromGitHub rec {
name = "cabin-1.005";
owner = "impallari";
repo = "Cabin";
rev = "982839c790e9dc57c343972aa34c51ed3b3677fd";
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt
'';
sha256 = "1bl7h217m695jn4rbniialfk573aa44fslp2rjxnhkicakpcm44h";
meta = with lib; {
description = "A 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;
};
}