about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/undefined-medium/default.nix
blob: 4c13a297c6f6ae30afa09a1ccba97e1fcf922da2 (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
{ lib, fetchzip }:

fetchzip rec {
  name = "undefined-medium-1.0";

  url = "https://github.com/andirueckel/undefined-medium/archive/v1.0.zip";

  postFetch = ''
    mkdir -p $out/share/fonts
    unzip -j $downloadedFile ${name}/fonts/otf/\*.otf -d $out/share/fonts/opentype
  '';

  sha256 = "1wa04jzbffshwcxm705yb5wja8wakn8j7fvim1mlih2z1sqw0njk";

  meta = with lib; {
    homepage = "https://undefined-medium.com/";
    description = "A pixel grid-based monospace typeface";
    longDescription = ''
      undefined medium is a free and open-source pixel grid-based
      monospace typeface suitable for programming, writing, and
      whatever else you can think of … it’s pretty undefined.
    '';
    license = licenses.ofl;
    maintainers = [ maintainers.rycee ];
    platforms = platforms.all;
  };
}