1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "camingo-code";
5 version = "1.0";
6
7 src = fetchzip {
8 url = "https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip";
9 hash = "sha256-oo5pWDq6h0bmyGvfF9Bkh7WyjKX4dG8uclfIsWLhDw8=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 camingo-code/*.ttf -t $out/share/fonts/truetype
16 install -Dm644 camingo-code/*.txt -t $out/share/doc/${pname}-${version}
17
18 runHook postInstall
19 '';
20
21 meta = with lib; {
22 homepage = "https://www.myfonts.com/fonts/jan-fromm/camingo-code/";
23 description = "Monospaced typeface designed for source-code editors";
24 platforms = platforms.all;
25 license = licenses.cc-by-nd-30;
26 };
27}