mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
42 lines
1.4 KiB
Nix
42 lines
1.4 KiB
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "caladea";
|
|
version = "20130214";
|
|
|
|
src = fetchurl {
|
|
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
|
|
hash = "sha256-xI0cL9YTycBslZw02nuDiAWeJAjSuxmEXcPtNfduTQk=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
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
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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 = "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;
|
|
};
|
|
}
|