about summary refs log tree commit diff
path: root/pkgs/data/fonts/opensans-ttf/default.nix
blob: 16e2d54f13001f2e25c7a2b8235c9a5a5f31c356 (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
{stdenv, fetchurl}:

# adapted from https://aur.archlinux.org/packages/tt/ttf-opensans/PKGBUILD

stdenv.mkDerivation rec {
  name = "opensans-ttf-20140617";

  src = fetchurl {
    url = "https://hexchain.org/pub/archlinux/ttf-opensans/opensans.tar.gz";
    sha256 = "1ycn39dijhd3lffmafminrnfmymdig2jvc6i47bb42fx777q97q4";
  };

  sourceRoot = ".";

  installPhase = ''
    mkdir -p $out/share/fonts/truetype
    cp *.ttf $out/share/fonts/truetype
  '';

  meta = {
    description = "Open Sans fonts";
    longDescription = ''
      Open Sans is a humanist sans serif typeface designed by Steve Matteson,
      Type Director of Ascender Corp.
    '';
    homepage = https://en.wikipedia.org/wiki/Open_Sans;
    license = stdenv.lib.licenses.asl20;
    platforms = stdenv.lib.platforms.all;
    maintainers = [ ];
  };
}