redhat-official-fonts: 2.2.0 -> 2.3.2

This commit is contained in:
Mario Rodas 2020-07-29 00:00:00 -05:00
parent 65eab104a3
commit e659a32203
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -1,16 +1,21 @@
{ lib, fetchzip }: { lib, fetchFromGitHub }:
let
let version = "2.2.0"; in version = "2.3.2";
fetchzip { in
fetchFromGitHub {
name = "redhat-official-${version}"; name = "redhat-official-${version}";
url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";
owner = "RedHatOfficial";
repo = "RedHatFont";
rev = version;
postFetch = '' postFetch = ''
mkdir -p $out/share/fonts/opentype tar xf $downloadedFile --strip=1
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype install -m444 -Dt $out/share/fonts/opentype OTF/*.otf
install -m444 -Dt $out/share/fonts/truetype TTF/*.ttf
''; '';
sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj"; sha256 = "1afvxmgif61hb17g8inmxvq30vkzwh30mydlqpf0zgvaaz8qdwmv";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/RedHatOfficial/RedHatFont"; homepage = "https://github.com/RedHatOfficial/RedHatFont";