File tree Expand file tree Collapse file tree
pkgs/data/fonts/redhat-official Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ;
You can’t perform that action at this time.
0 commit comments