1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "undefined-medium";
5 version = "1.3";
6
7 src = fetchzip {
8 url = "https://github.com/andirueckel/undefined-medium/archive/v1.3.zip";
9 hash = "sha256-cVdk6a0xijAQ/18W5jalqRS7IiPufMJW27Scns+nbEY=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 fonts/otf/*.otf -t $out/share/fonts/opentype
16
17 runHook postInstall
18 '';
19
20 meta = with lib; {
21 homepage = "https://undefined-medium.com/";
22 description = "Pixel grid-based monospace typeface";
23 longDescription = ''
24 undefined medium is a free and open-source pixel grid-based
25 monospace typeface suitable for programming, writing, and
26 whatever else you can think of … it’s pretty undefined.
27 '';
28 license = licenses.ofl;
29 platforms = platforms.all;
30 };
31}