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

let
  version = "3.0.1";
in fetchFromGitHub {
  name = "material-icons-${version}";

  owner  = "google";
  repo   = "material-design-icons";
  rev    = version;

  postFetch = ''
    tar xf $downloadedFile --strip=1
    mkdir -p $out/share/fonts/truetype
    cp iconfont/*.ttf $out/share/fonts/truetype
  '';
  sha256 = "1syy6v941lb8nqxhdf7mfx28v05lwrfnq53r3c1ym13x05l9kchp";

  meta = with lib; {
    description = "System status icons by Google, featuring material design";
    homepage = "https://material.io/icons";
    license = licenses.asl20;
    platforms = platforms.all;
    maintainers = with maintainers; [ mpcsh ];
  };
}