ad8edb6259
carlito used to call `fetchzip` directly, and the fact that it was a fixed-output derivation meant nobody noticed that: 1. the derivation no longer built from source (due to changes in `fetchzip`), and 2. the updated fontconfig xml never got used.
38 lines
1.3 KiB
Nix
38 lines
1.3 KiB
Nix
{ lib, fetchzip, stdenvNoCC }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "carlito";
|
|
version = "20130920";
|
|
|
|
src = fetchzip {
|
|
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-${version}.tar.gz";
|
|
sha256 = "sha256-OGDO5WoF7OmiRdLRRrIXMzg276Pgeq1L3Offcl0W2jg=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
mkdir -p $out/share/fonts/truetype
|
|
cp -v $src/*.ttf $out/share/fonts/truetype
|
|
cp -v ${./calibri-alias.conf} $out/etc/fonts/conf.d/30-calibri.conf
|
|
'';
|
|
|
|
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/carlito";
|
|
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 upon 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;
|
|
};
|
|
}
|