2018-07-29 19:28:44 +00:00
|
|
|
{ lib, fetchzip }:
|
2017-12-19 20:17:52 +00:00
|
|
|
|
2018-07-29 19:28:44 +00:00
|
|
|
let
|
2019-06-04 19:43:13 +00:00
|
|
|
version = "2.0.0";
|
2018-07-29 19:28:44 +00:00
|
|
|
in fetchzip rec {
|
2017-12-19 20:17:52 +00:00
|
|
|
name = "ibm-plex-${version}";
|
2018-07-29 19:28:44 +00:00
|
|
|
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
|
2017-12-19 20:17:52 +00:00
|
|
|
postFetch = ''
|
2018-07-29 19:28:44 +00:00
|
|
|
mkdir -p $out/share/fonts
|
2019-03-15 05:44:02 +00:00
|
|
|
unzip -j $downloadedFile "OpenType/*/*.otf" -d $out/share/fonts/opentype
|
2017-12-19 20:17:52 +00:00
|
|
|
'';
|
2019-06-04 19:43:13 +00:00
|
|
|
sha256 = "0m4paww4349d37s7j20a00hp514p1jq54xrnz45wyrafb8pkah4g";
|
2017-12-19 20:17:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IBM Plex Typeface";
|
2018-07-29 19:28:44 +00:00
|
|
|
homepage = https://www.ibm.com/plex/;
|
2017-12-19 20:17:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|