2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2015-03-12 22:14:21 +00:00
|
|
|
version = "20130920";
|
2019-08-13 22:52:01 +01:00
|
|
|
in fetchzip {
|
2017-08-10 20:43:49 +01:00
|
|
|
name = "carlito-${version}";
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
|
2015-03-12 22:14:21 +00:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar -xzvf $downloadedFile --strip-components=1
|
2015-03-12 22:14:21 +00:00
|
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp -v *.ttf $out/share/fonts/truetype
|
|
|
|
cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
|
|
|
|
'';
|
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
sha256 = "0d72zy6kdmxgpi63r3yvi3jh1hb7lvlgv8hgd4ag0x10dz18mbzv";
|
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2015-03-12 22:14:21 +00:00
|
|
|
# This font doesn't appear to have any official web site but this
|
|
|
|
# one provides some good information and samples.
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://openfontlibrary.org/en/font/carlito";
|
2015-03-12 22:14:21 +00:00
|
|
|
description = "A sans-serif font metric-compatible with Microsoft Calibri";
|
|
|
|
longDescription = ''
|
|
|
|
Carlito is a free font that is metric-compatible with the
|
|
|
|
Microsoft Calibri font. The font is designed by Łukasz Dziedzic
|
|
|
|
of the tyPoland foundry and based his Lato font.
|
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|