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