Skip to content

Commit e659a32

Browse files
committed
redhat-official-fonts: 2.2.0 -> 2.3.2
1 parent 65eab10 commit e659a32

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

pkgs/data/fonts/redhat-official/default.nix

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
{ lib, fetchzip }:
2-
3-
let version = "2.2.0"; in
4-
fetchzip {
1+
{ lib, fetchFromGitHub }:
2+
let
3+
version = "2.3.2";
4+
in
5+
fetchFromGitHub {
56
name = "redhat-official-${version}";
6-
url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";
7+
8+
owner = "RedHatOfficial";
9+
repo = "RedHatFont";
10+
rev = version;
711

812
postFetch = ''
9-
mkdir -p $out/share/fonts/opentype
10-
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
13+
tar xf $downloadedFile --strip=1
14+
install -m444 -Dt $out/share/fonts/opentype OTF/*.otf
15+
install -m444 -Dt $out/share/fonts/truetype TTF/*.ttf
1116
'';
1217

13-
sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj";
18+
sha256 = "1afvxmgif61hb17g8inmxvq30vkzwh30mydlqpf0zgvaaz8qdwmv";
1419

1520
meta = with lib; {
1621
homepage = "https://github.com/RedHatOfficial/RedHatFont";

0 commit comments

Comments
 (0)