summaryrefslogtreecommitdiffstats
path: root/pkgs/data/fonts/courier-prime/default.nix
blob: 1226966d5e6cd1b231d22bb2253fbb8267fb330d (plain)
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
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "courier-prime";
  version = "unstable-2019-12-05";

  src = fetchzip {
    url = "https://github.com/quoteunquoteapps/CourierPrime/archive/7f6d46a766acd9391d899090de467c53fd9c9cb0/${pname}-${version}.zip";
    hash = "sha256-pMFZpytNtgoZrBj2Gj8SgJ0Lab8uVY5aQtcO2lFbHj4=";
  };

  installPhase = ''
    runHook preInstall

    install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf

    runHook postInstall
  '';

  meta = with lib; {
    description = "Monospaced font designed specifically for screenplays";
    homepage = "https://github.com/quoteunquoteapps/CourierPrime";
    license = licenses.ofl;
    maintainers = [ maintainers.austinbutler ];
    platforms = platforms.all;
  };
}