2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "caladea";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "20130214";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
|
|
|
|
hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00: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
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = [ maintainers.rycee ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|