2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchzip }:
|
2015-10-15 18:56:58 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
fetchzip {
|
2017-01-15 23:21:36 +00:00
|
|
|
name = "paratype-pt-sans";
|
2015-10-15 18:56:58 +00:00
|
|
|
|
2021-04-05 01:40:27 +00:00
|
|
|
urls = [
|
2020-04-01 01:11:51 +00:00
|
|
|
"https://company.paratype.com/system/attachments/629/original/ptsans.zip"
|
|
|
|
"http://rus.paratype.ru/system/attachments/629/original/ptsans.zip"
|
2019-05-13 01:55:32 +00:00
|
|
|
];
|
2015-10-15 18:56:58 +00:00
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile \*.txt -d $out/share/doc/paratype
|
2015-10-15 18:56:58 +00:00
|
|
|
'';
|
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
sha256 = "01fkd417gv98jf3a6zyfi9w2dkqsbddy1vacga2672yf0kh1z1r0";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.paratype.ru/public/";
|
2015-10-15 18:56:58 +00:00
|
|
|
description = "An open Paratype font";
|
|
|
|
|
2017-08-10 19:43:49 +00:00
|
|
|
license = "Open Paratype license";
|
2015-10-15 18:56:58 +00:00
|
|
|
# no commercial distribution of the font on its own
|
|
|
|
# must rename on modification
|
|
|
|
# http://www.paratype.ru/public/pt_openlicense.asp
|
|
|
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|