2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2015-03-12 23:14:21 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
let
|
2015-03-12 23:14:21 +01:00
|
|
|
version = "20130214";
|
2019-08-13 23:52:01 +02:00
|
|
|
in fetchzip {
|
2017-08-10 21:43:49 +02:00
|
|
|
name = "caladea-${version}";
|
2015-03-12 23:14:21 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
|
|
|
|
postFetch = ''
|
|
|
|
tar -xzvf $downloadedFile --strip-components=1
|
2015-03-12 23:14:21 +01:00
|
|
|
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
|
|
|
|
'';
|
2017-08-10 21:43:49 +02:00
|
|
|
sha256 = "0kwm42ggr8kvcn3554cpmv90xzam1sdncx7x3zs3bzp88mxrnv1z";
|
2015-03-12 23:14:21 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2015-03-12 23:14:21 +01:00
|
|
|
# This font doesn't appear to have any official web site but this
|
|
|
|
# one provides some good information and samples.
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://openfontlibrary.org/en/font/caladea";
|
2015-03-12 23:14:21 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|