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