Skip to content

Commit

Permalink
redhat-official-fonts: 2.2.0 -> 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Jul 29, 2020
1 parent 65eab10 commit e659a32
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions pkgs/data/fonts/redhat-official/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{ lib, fetchzip }:

let version = "2.2.0"; in
fetchzip {
{ lib, fetchFromGitHub }:
let
version = "2.3.2";
in
fetchFromGitHub {
name = "redhat-official-${version}";
url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";

owner = "RedHatOfficial";
repo = "RedHatFont";
rev = version;

postFetch = ''
mkdir -p $out/share/fonts/opentype
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
tar xf $downloadedFile --strip=1
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; {
homepage = "https://github.com/RedHatOfficial/RedHatFont";
Expand Down

0 comments on commit e659a32

Please sign in to comment.