summary refs log tree commit diff
path: root/pkgs/data/fonts/oldstandard/default.nix
blob: ddff3666b0b4d44c960e89c95fec4eca8ad59df3 (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
{ lib, fetchzip }:

let
  version = "2.2";
in fetchzip rec {
  name = "oldstandard-${version}";

  url = "https://github.com/akryukov/oldstand/releases/download/v${version}/${name}.otf.zip";

  postFetch = ''
    unzip $downloadedFile
    install -m444 -Dt $out/share/fonts/opentype *.otf
    install -m444 -Dt $out/share/doc/${name}    FONTLOG.txt
  '';

  sha256 = "1qwfsyp51grr56jcnkkmnrnl3r20pmhp9zh9g88kp64m026cah6n";

  meta = with lib; {
    homepage = "https://github.com/akryukov/oldstand";
    description = "An attempt to revive a specific type of Modern style of serif typefaces";
    maintainers = with maintainers; [ raskin ];
    license = licenses.ofl;
    platforms = platforms.all;
  };
}