summary refs log tree commit diff
path: root/pkgs/data/fonts/google-fonts/default.nix
blob: 9f14f945e35371fab4a4cf8f0c4ef90c3d15c13e (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
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "google-fonts";
  version = "2015-11-18";

  src = fetchurl {
    url = "https://github.com/google/fonts/archive/a26bc2b9f4ad27266c2587dc0355b3066519844a.tar.gz";
    sha256 = "1aizwzsxg30mjds1628280bs7ishgsfairnx131654gm51aihw8p";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/fonts/truetype
    find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \;
  '';

  meta = with stdenv.lib; {
    homepage = https://www.google.com/fontsl;
    description = "Font files available from Google Font";
    license = with licenses; [ asl20 ofl ufl ];
    platforms = platforms.all;
    maintainer = with maintainers; [ manveru ];
  };
}