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

33 lines
879 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-mono";
url = [
"https://company.paratype.com/system/attachments/631/original/ptmono.zip"
"http://rus.paratype.ru/system/attachments/631/original/ptmono.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 = "07kl82ngby55khvzsvn831ddpc0q8djgz2y6gsjixkyjfdk2xjjm";
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 ];
};
}