summary refs log tree commit diff
path: root/pkgs/data/fonts/camingo-code/default.nix
blob: 626ff9f1c0a23d55fe5f59ce31b3b74f8ead6bf0 (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 = "1.0";
in fetchzip rec {
  name = "camingo-code-${version}";

  url = "https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip";
  postFetch = ''
    install -Dm644 $out/camingo-code/*.ttf -t $out/share/fonts/truetype
    install -Dm644 $out/camingo-code/*.txt -t $out/share/doc/${name}
    shopt -s extglob dotglob
    rm -rf $out/!(share)
    shopt -u extglob dotglob
  '';
  sha256 = "sha256-/vDNuR034stmiCZ9jUH5DlTQJn0WccLY5treoziXOJo=";

  meta = with lib; {
    homepage = "https://www.myfonts.com/fonts/jan-fromm/camingo-code/";
    description = "A monospaced typeface designed for source-code editors";
    platforms = platforms.all;
    license = licenses.cc-by-nd-30;
  };
}