2015-06-11 23:17:53 +01:00
|
|
|
{ stdenv, fetchzip }:
|
2014-05-07 08:56:41 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2015-06-11 23:17:53 +01:00
|
|
|
version = "0.016";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "eb-garamond-${version}";
|
2014-05-07 08:56:41 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${version}.zip";
|
2014-05-07 08:56:41 +01:00
|
|
|
|
2017-08-10 20:43:49 +01: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}"
|
2015-06-11 23:17:53 +01:00
|
|
|
'';
|
2014-05-07 08:56:41 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
sha256 = "04jq4mpln85zzbla8ybsjw7vn9qr3r0snmk5zykrm24imq7ripv3";
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.georgduffner.at/ebgaramond/;
|
2014-05-07 08:56:41 +01:00
|
|
|
description = "Digitization of the Garamond shown on the Egenolff-Berner specimen";
|
2015-06-11 23:17:53 +01:00
|
|
|
maintainers = with maintainers; [ relrod rycee ];
|
2014-05-07 08:56:41 +01:00
|
|
|
license = licenses.ofl;
|
2015-06-11 23:17:53 +01:00
|
|
|
platforms = platforms.all;
|
2014-05-07 08:56:41 +01:00
|
|
|
};
|
2015-06-11 23:17:53 +01:00
|
|
|
}
|