summary refs log tree commit diff
path: root/pkgs/data/fonts/redhat-official/default.nix
blob: 44eea3774ffcc6e212650143654ffd9a40179a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, fetchzip }:

let version = "2.2.0"; in
fetchzip {
  name = "redhat-official-${version}";
  url = "https://github.com/RedHatOfficial/RedHatFont/archive/${version}.zip";

  postFetch = ''
    mkdir -p $out/share/fonts/opentype
    unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
  '';

  sha256 = "0yb6shgq6jrv3kq9faky66qpdbv4g580c3jl942844grwyngymyj";

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