ibm-plex: 0.5.3 -> 1.0.2 (#43935)

This commit is contained in:
Mario Rodas 2018-07-29 14:28:44 -05:00 committed by xeji
parent 5bc007bbea
commit 233b28285f

View File

@ -1,23 +1,19 @@
{ lib, fetchFromGitHub }: { lib, fetchzip }:
let version = "0.5.3"; let
in fetchFromGitHub rec { version = "1.0.2";
in fetchzip rec {
name = "ibm-plex-${version}"; name = "ibm-plex-${version}";
url = "https://github.com/IBM/plex/releases/download/v${version}/OpenType.zip";
owner = "IBM";
repo = "type";
rev = "v${version}";
sha256 = "1im7sid3qsk4wnm0yhq9h7i50bz46jksqxv60svdfnsrwq0krd1h";
postFetch = '' postFetch = ''
tar --strip-components=1 -xzvf $downloadedFile mkdir -p $out/share/fonts
mkdir -p $out/share/fonts/opentype unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
cp fonts/*/desktop/mac/*.otf $out/share/fonts/opentype/
''; '';
sha256 = "1ixxm47lwsrc136z6cxkk5dm3svmvcvq0ya8q8ayvn68q5ijbh5m";
meta = with lib; { meta = with lib; {
description = "IBM Plex Typeface"; description = "IBM Plex Typeface";
homepage = https://ibm.github.io/type/; homepage = https://www.ibm.com/plex/;
license = licenses.ofl; license = licenses.ofl;
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.romildo ]; maintainers = [ maintainers.romildo ];