about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/emacs-all-the-icons-fonts/default.nix
blob: 256084a320fce5189dc58d7c166a6dc451e5ba32 (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
29
30
31
32
33
34
35
36
37
38
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "emacs-all-the-icons-fonts";
  version = "5.0.0";

  src = fetchzip {
    url = "https://github.com/domtronn/all-the-icons.el/archive/${version}.zip";
    hash = "sha256-70ysVxOey6NLlCwhEYhxpxO6uuarMFDpg3Efh+3bj1M=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 fonts/*.ttf -t $out/share/fonts/all-the-icons

    runHook postInstall
  '';

  meta = with lib; {
    description = "Icon fonts for emacs all-the-icons";
    longDescription = ''
      The emacs package all-the-icons provides icons to improve
      presentation of information in emacs. This package provides
      the fonts needed to make the package work properly.
    '';
    homepage = "https://github.com/domtronn/all-the-icons.el";

    /*
      The fonts come under a mixture of licenses - the MIT license,
      SIL OFL license, and Apache license v2.0. See the GitHub page
      for further information.
    */
    license = licenses.free;
    platforms = platforms.all;
    maintainers = with maintainers; [ rlupton20 ];
  };
}