summary refs log tree commit diff
path: root/pkgs/data/fonts/terminus-nerdfont/default.nix
blob: 3c1730146b3d900272759e0d776cebb8ff94e364 (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
28
{ lib, fetchzip }:

let
  version = "2.0.0";
in fetchzip {
  name = "terminus-nerdfont-${version}";

  url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/Terminus.zip";

  postFetch = ''
    mkdir -p $out/share/fonts/terminus-nerdfont
    unzip -j $downloadedFile -d $out/share/fonts/terminus-nerdfont
  '';

  sha256 = "036i1qwwrb0r8hvcjf3h34w0g7mbsmngvrjic98jgikbz3i2f46c";

  meta = with lib; {
    description = ''
      Nerd Fonts is a project that attempts to patch as many developer targeted
      and/or used fonts as possible. The patch is to specifically add a high
      number of additional glyphs from popular 'iconic fonts' such as Font
      Awesome, Devicons, Octicons, and others.
    '';
    homepage = https://github.com/ryanoasis/nerd-fonts;
    license = licenses.mit;
    platforms = platforms.all;
  };
}