1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "caladea";
9 version = "20130214";
10
11 src = fetchurl {
12 url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
13 hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk=";
14 };
15
16 installPhase = ''
17 runHook preInstall
18
19 mkdir -p $out/etc/fonts/conf.d
20 mkdir -p $out/share/fonts/truetype
21 cp -v *.ttf $out/share/fonts/truetype
22 cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
23
24 runHook postInstall
25 '';
26
27 meta = with lib; {
28 # This font doesn't appear to have any official web site but this
29 # one provides some good information and samples.
30 homepage = "http://openfontlibrary.org/en/font/caladea";
31 description = "Serif font metric-compatible with Microsoft Cambria";
32 longDescription = ''
33 Caladea is a free font that is metric-compatible with the
34 Microsoft Cambria font. Developed by Carolina Giovagnoli and
35 Andrés Torresi at Huerta Tipográfica foundry.
36 '';
37 license = licenses.asl20;
38 platforms = platforms.all;
39 maintainers = [ maintainers.rycee ];
40
41 # Reduce the priority of this package. The intent is that if you
42 # also install the `vista-fonts` package, then you probably will
43 # not want to install the font alias of this package.
44 priority = 10;
45 };
46}