2018-07-29 12:28:44 -07:00
|
|
|
{ lib, fetchzip }:
|
2017-12-19 12:17:52 -08:00
|
|
|
|
2018-07-29 12:28:44 -07:00
|
|
|
let
|
2020-09-01 18:33:53 -07:00
|
|
|
version = "5.1.3";
|
2020-06-08 11:47:19 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
in fetchzip {
|
2017-12-19 12:17:52 -08:00
|
|
|
name = "ibm-plex-${version}";
|
2020-06-08 11:47:19 -07:00
|
|
|
|
2018-07-29 12:28:44 -07:00
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2020-06-08 11:47:19 -07:00
|
|
|
|
2017-12-19 12:17:52 -08:00
|
|
|
postFetch = ''
|
2018-07-29 12:28:44 -07:00
|
|
|
mkdir -p $out/share/fonts
|
2019-03-14 22:44:02 -07:00
|
|
|
unzip -j $downloadedFile "OpenType/*/*.otf" -d $out/share/fonts/opentype
|
2017-12-19 12:17:52 -08:00
|
|
|
'';
|
2020-06-08 11:47:19 -07:00
|
|
|
|
2020-09-01 18:33:53 -07:00
|
|
|
sha256 = "0w07fkhav2lqdyki7ipnkpji5ngwarlhsyliy0ip7cd29x24ys5h";
|
2017-12-19 12:17:52 -08:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.ibm.com/plex/";
|
2017-12-19 12:17:52 -08:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|