about summary refs log tree commit diff
path: root/pkgs/data/fonts/linden-hill/default.nix
blob: 60f59ac67897995064a60e484231decacce6cb3d (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
{ lib, fetchFromGitHub, stdenvNoCC }:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "linden-hill";
  version = "2011-05-25";

  src = fetchFromGitHub {
    owner = "theleagueof";
    repo = finalAttrs.pname;
    rev = "a3f7ae6c4cac1b7e5ce5269e1fcc6a2fbb9e31ee";
    hash = "sha256-EjXcLjzVQeOJgLxGua8t0oMc+APOsONGGpG6VJVCgFw=";
  };

  installPhase = ''
    runHook preInstall

    install -D -m444 -t $out/share/fonts/opentype $src/*.otf

    runHook postInstall
  '';

  meta = {
    description = "Digital version of Frederic Goudy’s Deepdene";
    longDescription = ''
      Linden Hill is a digital version of Frederic Goudy’s Deepdene. The
      package includes roman and italic.
    '';
    homepage = "https://www.theleagueofmoveabletype.com/linden-hill";
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [ minijackson ];
  };
})