nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "undefined-medium";
5 version = "1.1";
6
7 src = fetchzip {
8 url = "https://github.com/andirueckel/undefined-medium/archive/v1.1.zip";
9 hash = "sha256-iquxt7lo92y4AQZf23Ij5Qzg2U7buL3kGLksQSR6vac=";
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 = "A 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}