3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/ibm-plex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
705 B
Nix
Raw Normal View History

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
version = "6.0.1";
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
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
sha256 = "sha256-HxO0L5Q6WJQBqtg64cczzuRcSYi4jEqbOzEWxDmqFp8=";
2017-12-19 20:17:52 +00:00
meta = with lib; {
description = "IBM Plex Typeface";
homepage = "https://www.ibm.com/plex/";
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 ];
};
}