nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 1.5 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "cabin"; 9 version = "1.005"; 10 11 src = fetchFromGitHub { 12 owner = "impallari"; 13 repo = "Cabin"; 14 rev = "982839c790e9dc57c343972aa34c51ed3b3677fd"; 15 hash = "sha256-9l4QcwCot340Bq41ER68HSZGQ9h0opyzgG3DG/fVZ5s="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 21 install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf 22 install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt 23 24 runHook postInstall 25 ''; 26 27 meta = with lib; { 28 description = "Humanist sans with 4 weights and true italics"; 29 longDescription = '' 30 The Cabin font family is a humanist sans with 4 weights and true italics, 31 inspired by Edward Johnstons and Eric Gills typefaces, with a touch of 32 modernism. Cabin incorporates modern proportions, optical adjustments, and 33 some elements of the geometric sans. It remains true to its roots, but has 34 its own personality. 35 36 The weight distribution is almost monotone, although top and bottom curves 37 are slightly thin. Counters of the b, g, p and q are rounded and optically 38 adjusted. The curved stem endings have a 10 degree angle. E and F have 39 shorter center arms. M is splashed. 40 ''; 41 homepage = "http://www.impallari.com/cabin"; 42 license = licenses.ofl; 43 maintainers = with maintainers; [ cmfwyp ]; 44 platforms = platforms.all; 45 }; 46}