nixpkgs/pkgs/data/fonts/ibm-plex/default.nix

26 lines
588 B
Nix
Raw Normal View History

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