nixpkgs/pkgs/data/fonts/gentium/default.nix
Robert Helgesson d7f36310d0 Remove use of builderDefsPackage in font packages.
With this change they now use `stdenv.mkDerivation` instead. Also some
minor cleanups such as URL fixes, adding version numbers, adding
descriptions, etc.
2015-06-12 19:43:18 +02:00

30 lines
944 B
Nix

{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "gentium-${version}";
version = "1.504";
src = fetchzip {
name = "${name}.zip";
url = "http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=GentiumPlus-${version}.zip&filename=${name}.zip";
sha256 = "1xdx80dfal0b8rkrp1janybx2hki7algnvkx4hyghgikpjcjkdh7";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/doc/${name}
cp -v *.ttf $out/share/fonts/truetype/
cp -v FONTLOG.txt GENTIUM-FAQ.txt README.txt $out/share/doc/${name}
'';
meta = with stdenv.lib; {
homepage = "http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=Gentium";
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
maintainers = with maintainers; [ raskin rycee ];
license = licenses.ofl;
platforms = platforms.all;
};
}