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

33 lines
882 B
Nix
Raw Normal View History

2017-08-10 19:43:49 +00:00
{ stdenv, fetchzip }:
2015-10-15 18:56:58 +00:00
2019-08-13 21:52:01 +00:00
fetchzip {
2015-10-15 18:56:58 +00:00
name = "paratype-pt-serif";
url = [
"https://company.paratype.com/system/attachments/634/original/ptserif.zip"
"http://rus.paratype.ru/system/attachments/634/original/ptserif.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 = "1iw5qi4ag3yp1lwmi91lb18gr768bqwl46xskaqnkhr9i9qp0v6d";
2015-10-15 18:56:58 +00:00
meta = with stdenv.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 ];
};
}