depot/third_party/nixpkgs/pkgs/data/fonts/redhat-official/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

32 lines
848 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "redhat-official";
version = "4.0.3";
src = fetchFromGitHub {
owner = "RedHatOfficial";
repo = "RedHatFont";
rev = version;
hash = "sha256-r43KtMIedNitb5Arg8fTGB3hrRZoA8oUHVEL24k4LeQ=";
};
installPhase = ''
runHook preInstall
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
runHook postInstall
'';
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; [ ];
};
}