about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/font-awesome-5/default.nix
blob: ee1365d261184f18c8751565190f7e22b4e2dff5 (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
{ lib, fetchFromGitHub }:

let
  version = "5.9.0";
in fetchFromGitHub rec {
  name = "font-awesome-${version}";

  owner = "FortAwesome";
  repo = "Font-Awesome";
  rev = version;

  postFetch = ''
    tar xf $downloadedFile --strip=1
    install -m444 -Dt $out/share/fonts/opentype otfs/*.otf
  '';

  sha256 = "0sz7mn7g968vp5hszs05grpphd7zr3073az8lyy1lj0096zvjjii";

  meta = with lib; {
    description = "Font Awesome - OTF font";
    longDescription = ''
      Font Awesome gives you scalable vector icons that can instantly be customized.
      This package includes only the OTF font. For full CSS etc. see the project website.
    '';
    homepage = http://fortawesome.github.io/Font-Awesome/;
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ abaldeau ];
  };
}