nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, fetchurl, stdenvNoCC }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "carlito";
5 version = "20130920";
6
7 src = fetchurl {
8 url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
9 sha256 = "sha256-S9ErbLwyHBzxbaduLFhcklzpVqCAZ65vbGTv9sz9r1o=";
10 };
11
12 installPhase = ''
13 mkdir -p $out/etc/fonts/conf.d
14 mkdir -p $out/share/fonts/truetype
15 cp -v *.ttf $out/share/fonts/truetype
16 cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
17 '';
18
19 meta = with lib; {
20 # This font doesn't appear to have any official web site but this
21 # one provides some good information and samples.
22 homepage = "http://openfontlibrary.org/en/font/carlito";
23 description = "A sans-serif font metric-compatible with Microsoft Calibri";
24 longDescription = ''
25 Carlito is a free font that is metric-compatible with the
26 Microsoft Calibri font. The font is designed by Łukasz Dziedzic
27 of the tyPoland foundry and based upon his Lato font.
28 '';
29 license = licenses.ofl;
30 platforms = platforms.all;
31 maintainers = [ ];
32
33 # Reduce the priority of this package. The intent is that if you
34 # also install the `vista-fonts` package, then you probably will
35 # not want to install the font alias of this package.
36 priority = 10;
37 };
38}