nixpkgs/pkgs/data/fonts/redhat-official/default.nix
Stephane Raux da1f31a62e redhat-official-fonts: 2.3.2 -> 4.0.2
This update also makes the monospace font available.
2022-02-16 20:27:22 -06:00

30 lines
797 B
Nix

{ lib, fetchFromGitHub }:
let
version = "4.0.2";
in
fetchFromGitHub {
name = "redhat-official-${version}";
owner = "RedHatOfficial";
repo = "RedHatFont";
rev = version;
postFetch = ''
tar xf $downloadedFile --strip=1
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
'';
sha256 = "sha256-904uQtbAdLx9MJudLk/vVk/+uK0nsPbWbAeXrWxTHm8=";
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 ];
};
}