nixpkgs/pkgs/data/fonts/eb-garamond/default.nix

26 lines
813 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2017-08-10 19:43:49 +00:00
let
version = "0.016";
2017-08-10 19:43:49 +00:00
in fetchzip rec {
name = "eb-garamond-${version}";
2017-08-10 19:43:49 +00:00
url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${version}.zip";
2017-08-10 19:43:49 +00:00
postFetch = ''
mkdir -p $out/share/{doc,fonts}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*Changes \*README.markdown \*README.xelualatex -d "$out/share/doc/${name}"
'';
2017-08-10 19:43:49 +00:00
sha256 = "04jq4mpln85zzbla8ybsjw7vn9qr3r0snmk5zykrm24imq7ripv3";
meta = with lib; {
homepage = "http://www.georgduffner.at/ebgaramond/";
description = "Digitization of the Garamond shown on the Egenolff-Berner specimen";
maintainers = with maintainers; [ relrod rycee ];
license = licenses.ofl;
platforms = platforms.all;
};
}