summary refs log tree commit diff
path: root/pkgs/data/fonts/overpass/default.nix
blob: e24d61d5ba1ca806c4a4473b150a48e7ebbf7b38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, unzip }:

stdenv.mkDerivation rec {
  name = "overpass-${version}";
  version = "3.0.2";

  src = fetchFromGitHub {
    owner = "RedHatBrand";
    repo = "Overpass";
    rev = version;
    sha256 = "1bgmnhdfmp4rycyadcnzw62vkvn63nn29pq9vbjf4c9picvl8ah6";
  };

  nativeBuildInputs = [ unzip ];

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/doc/${name}
    mkdir -p $out/share/fonts/opentype
    cp -v "desktop-fonts/"*"/"*.otf $out/share/fonts/opentype
    cp -v LICENSE.md README.md $out/share/doc/${name}
  '';

  meta = with stdenv.lib; {
    homepage = http://overpassfont.org/;
    description = "Font heavily inspired by Highway Gothic";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.rycee ];
  };
}