nixpkgs/pkgs/data/fonts/paratype-pt/sans.nix

33 lines
870 B
Nix
Raw Normal View History

{ 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
urls = [
"https://company.paratype.com/system/attachments/629/original/ptsans.zip"
"http://rus.paratype.ru/system/attachments/629/original/ptsans.zip"
];
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";
meta = with lib; {
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 ];
};
}