2020-08-20 17:08:02 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
let
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "4.0.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
in
|
|
|
|
fetchFromGitHub {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "redhat-official-${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
owner = "RedHatOfficial";
|
|
|
|
repo = "RedHatFont";
|
|
|
|
rev = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2020-08-20 17:08:02 +00:00
|
|
|
tar xf $downloadedFile --strip=1
|
2022-03-05 16:20:37 +00:00
|
|
|
for kind in mono proportional; do
|
|
|
|
install -m444 -Dt $out/share/fonts/opentype fonts/$kind/static/otf/*.otf
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype fonts/$kind/static/ttf/*.ttf
|
|
|
|
done
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-904uQtbAdLx9MJudLk/vVk/+uK0nsPbWbAeXrWxTHm8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/RedHatOfficial/RedHatFont";
|
|
|
|
description = "Red Hat's Open Source Fonts - Red Hat Display and Red Hat Text";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|