about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/yanone-kaffeesatz/default.nix
blob: 99cd30f3dfa73a576a694000abd2b2246fbe3cdc (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
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "yanone-kaffeesatz";
  version = "2004";

  src = fetchzip {
    url = "https://yanone.de/2015/data/UIdownloads/Yanone%20Kaffeesatz.zip";
    stripRoot = false;
    hash = "sha256-8yAB73UJ77/c8/VLqiFeT1KtoBQzOh+vWrI+JA2dCoY=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.otf -t $out/share/fonts/opentype

    runHook postInstall
  '';

  meta = {
    description = "The free font classic";
    maintainers = with lib.maintainers; [ mt-caret ];
    platforms = with lib.platforms; all;
    homepage = "https://yanone.de/fonts/kaffeesatz/";
    license = lib.licenses.ofl;
  };
}