3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/gentium-book-basic/default.nix
Ryan Mulligan b189247ba0 treewide: use more HTTPS URLs
Uses the HTTPS url for cases where the existing URL has a permanent
redirect. For each domain, at least one fixed derivation URL was
downloaded to test the domain is properly serving downloads.

Also fixes jbake source URL, which was broken.
2018-03-24 22:04:25 -07:00

29 lines
849 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 = https://software.sil.org/gentium/;
description = "A high-quality typeface family for Latin, Cyrillic, and Greek";
maintainers = with maintainers; [ ];
license = licenses.ofl;
platforms = platforms.all;
};
}