summary refs log tree commit diff
path: root/pkgs/data/fonts/junicode/default.nix
blob: 63af7e05ebf4685d2ce3a2c2bad5e69ca4413678 (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, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "junicode";
  version = "2.002";

  src = fetchzip {
    url = "https://github.com/psb1558/Junicode-font/releases/download/v${version}/Junicode_${version}.zip";
    hash = "sha256-AHy4uT0LEof69+ECoFlKmALPTTPbvRNjmFD240koWAE=";
  };

  outputs = [ "out" "doc" ];

  installPhase = ''
    runHook preInstall

    install -Dt $out/share/fonts/truetype TTF/*.ttf VAR/*.ttf
    install -Dt $out/share/fonts/opentype OTF/*.otf
    install -Dt $out/share/fonts/woff2 WOFF2/*.woff2

    install -Dt $doc/share/doc/${pname}-${version} docs/*.pdf

    runHook postInstall
  '';

  meta = {
    homepage = "https://github.com/psb1558/Junicode-font";
    description = "A Unicode font for medievalists";
    maintainers = with lib.maintainers; [ ivan-timokhin ];
    license = lib.licenses.ofl;
  };
}