nixpkgs/pkgs/data/fonts/caladea/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

{ lib, fetchzip }:
let
version = "20130214";
in fetchzip rec {
name = "caladea-${version}";
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
mkdir -p $out/etc/fonts/conf.d
mkdir -p $out/share/fonts/truetype
cp -v *.ttf $out/share/fonts/truetype
cp -v ${./cambria-alias.conf} $out/etc/fonts/conf.d/30-cambria.conf
'';
sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z";
meta = with lib; {
# This font doesn't appear to have any official web site but this
# one provides some good information and samples.
homepage = http://openfontlibrary.org/en/font/caladea;
description = "A serif font metric-compatible with Microsoft Cambria";
longDescription = ''
Caladea is a free font that is metric-compatible with the
Microsoft Cambria font. Developed by Carolina Giovagnoli and
Andrés Torresi at Huerta Tipográfica foundry.
'';
license = licenses.asl20;
platforms = platforms.all;
maintainers = [maintainers.rycee];
# Reduce the priority of this package. The intent is that if you
# also install the `vista-fonts` package, then you probably will
# not want to install the font alias of this package.
priority = 10;
};
}