redhat-official-fonts: 2.2.0 -> 2.3.2

+13 -8
+13 -8
pkgs/data/fonts/redhat-official/default.nix
··· 1 - { lib, fetchzip }: 1 + { lib, fetchFromGitHub }: 2 + let 3 + version = "2.3.2"; 4 + in 5 + fetchFromGitHub { 6 + name = "redhat-official-${version}"; 2 7 3 - let version = "2.2.0"; in 4 - fetchzip { 5 - name = "redhat-official-${version}"; 6 - url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip"; 8 + owner = "RedHatOfficial"; 9 + repo = "RedHatFont"; 10 + rev = version; 7 11 8 12 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 11 16 ''; 12 17 13 - sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj"; 18 + sha256 = "1afvxmgif61hb17g8inmxvq30vkzwh30mydlqpf0zgvaaz8qdwmv"; 14 19 15 20 meta = with lib; { 16 21 homepage = "https://github.com/RedHatOfficial/RedHatFont";