nixpkgs/pkgs/data/fonts/gentium-book-basic/default.nix
volth 8ec0a03bb2 gentium: make the font derivation fixed-output (#28132)
- [x] source link fixed
- [x] make the font derivations fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
2017-08-11 15:35:52 +02:00

29 lines
848 B
Nix

{ stdenv, fetchzip }:
let
major = "1";
minor = "102";
version = "${major}.${minor}";
in fetchzip rec {
name = "gentium-book-basic-${version}";
url = "http://software.sil.org/downloads/r/gentium/GentiumBasic_${major}${minor}.zip";
postFetch = ''
mkdir -p $out/share/{doc,fonts}
unzip -l $downloadedFile
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*/FONTLOG.txt \*/GENTIUM-FAQ.txt -d $out/share/doc/${name}
'';
sha256 = "0598zr5f7d6ll48pbfbmmkrybhhdks9b2g3m2g67wm40070ffzmd";
meta = with stdenv.lib; {
homepage = http://software.sil.org/gentium/;
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
maintainers = with maintainers; [ ];
license = licenses.ofl;
platforms = platforms.all;
};
}