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

let
  version = "unstable-2019-12-05";
  repo = "CourierPrime";
  rev = "7f6d46a766acd9391d899090de467c53fd9c9cb0";
in fetchzip rec {
  name = "courier-prime-${version}";
  url = "https://github.com/quoteunquoteapps/${repo}/archive/${rev}/${name}.zip";
  sha256 = "1xh4pkksm6zrafhb69q4lq093q6pl245zi9qhqw3x6c1ab718704";

  postFetch = ''
    unzip $downloadedFile
    install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf
  '';

  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;
  };
}