2018-07-29 20:28:44 +01:00
|
|
|
{ lib, fetchzip }:
|
2017-12-19 20:17:52 +00:00
|
|
|
|
2018-07-29 20:28:44 +01:00
|
|
|
let
|
2021-10-30 05:20:00 +01:00
|
|
|
version = "6.0.0";
|
2020-06-08 19:47:19 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
in fetchzip {
|
2017-12-19 20:17:52 +00:00
|
|
|
name = "ibm-plex-${version}";
|
2020-06-08 19:47:19 +01:00
|
|
|
|
2018-07-29 20:28:44 +01:00
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2020-06-08 19:47:19 +01:00
|
|
|
|
2017-12-19 20:17:52 +00:00
|
|
|
postFetch = ''
|
2018-07-29 20:28:44 +01:00
|
|
|
mkdir -p $out/share/fonts
|
2021-10-30 05:20:00 +01:00
|
|
|
unzip -j $downloadedFile "OpenType/*/*.otf" -x "OpenType/IBM-Plex-Sans-JP/unhinted/*" -d $out/share/fonts/opentype
|
2017-12-19 20:17:52 +00:00
|
|
|
'';
|
2020-06-08 19:47:19 +01:00
|
|
|
|
2021-10-30 05:20:00 +01:00
|
|
|
sha256 = "0zv9kw4hmchf374pl0iajzybmx5wklsplg56j115m46i4spij6mr";
|
2017-12-19 20:17:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.ibm.com/plex/";
|
2021-10-30 05:20:00 +01:00
|
|
|
changelog = "https://github.com/IBM/plex/raw/v${version}/CHANGELOG.md";
|
2017-12-19 20:17:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|