summary refs log tree commit diff
path: root/pkgs/data/fonts/source-serif-pro/default.nix
blob: 0ccb0299a3649cd4c7ee0e7df353fe6494435761 (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
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "source-serif-pro-${version}";
  version = "1.017";

  src = fetchurl rec {
    url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.tar.gz";
    sha256 = "04h24iywjl4fd08x22ypdb3sm979wjfq4wk95r3rk8w376spakrg";
  };

  phases = "unpackPhase installPhase";

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

  meta = with stdenv.lib; {
    homepage = http://sourceforge.net/adobe/sourceserifpro;
    description = "A set of OpenType fonts to complement Source Sans Pro";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ ttuegel ];
  };
}