depot/third_party/nixpkgs/pkgs/data/fonts/redhat-official/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

29 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 ];
};
}