about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/oldstandard/default.nix
blob: 95f8f3be7d65898fe014edafb36aa92d8d6f9b1b (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
33
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
  name = "oldstandard-${version}";
  version = "2.2";

  src = fetchzip {
    stripRoot = false;
    url = "https://github.com/akryukov/oldstand/releases/download/v${version}/${name}.otf.zip";
    sha256 = "1hl78jw5szdjq9dhbcv2ln75wpp2lzcxrnfc36z35v5wk4l7jc3h";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/fonts/opentype
    mkdir -p $out/share/doc/${name}
    cp -v *.otf $out/share/fonts/opentype/
    cp -v FONTLOG.txt $out/share/doc/${name}
  '';

  outputHashAlgo = "sha256";
  outputHashMode = "recursive";
  outputHash = "1qwfsyp51grr56jcnkkmnrnl3r20pmhp9zh9g88kp64m026cah6n";

  meta = with stdenv.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 rycee ];
    license = licenses.ofl;
    platforms = platforms.all;
  };
}