mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
33 lines
830 B
Nix
33 lines
830 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 = [ ];
|
|
};
|
|
}
|