2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "redhat-official";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "4.0.3";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RedHatOfficial";
|
|
|
|
repo = "RedHatFont";
|
|
|
|
rev = version;
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-r43KtMIedNitb5Arg8fTGB3hrRZoA8oUHVEL24k4LeQ=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|