2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.0.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchzip {
|
|
|
|
name = "ibm-plex-${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
2021-12-06 16:07:01 +00:00
|
|
|
unzip -j $downloadedFile "OpenType/*/*.otf" -x "OpenType/IBM-Plex-Sans-JP/unhinted/*" -d $out/share/fonts/opentype
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "0zv9kw4hmchf374pl0iajzybmx5wklsplg56j115m46i4spij6mr";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
|
|
|
homepage = "https://www.ibm.com/plex/";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|