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

stdenvNoCC.mkDerivation {
  pname = "ia-writer-duospace";
  version = "unstable-2018-07-21";

  src = fetchFromGitHub {
    owner = "iaolo";
    repo = "iA-Fonts";
    rev = "55edf60f544078ab1e14987bc67e9029a200e0eb";
    hash = "sha256-/ifzOScILLuFkjFIgpy0ArCcelgealbpypKvZ46xApU=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/opentype
    cp "iA Writer Duospace/OTF (Mac)/"*.otf $out/share/fonts/opentype/

    runHook postInstall
  '';

  meta = with lib; {
    description = "iA Writer Duospace Typeface";
    homepage = "https://ia.net/topics/in-search-of-the-perfect-writing-font";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ ];
  };
}