1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "source-code-pro-${version}";
5 version = "2.010";
6
7 src = fetchFromGitHub {
8 owner = "adobe-fonts";
9 repo = "source-code-pro";
10 rev = "2.010R-ro/1.030R-it";
11 name = "2.010R-ro-1.030R-it";
12 sha256 = "0f40g23lfcajpd5m9r1z7v8x011dsfs6ba7fihjal6yzaf5hb6mh";
13 };
14
15 phases = "unpackPhase installPhase";
16
17 installPhase = ''
18 mkdir -p $out/share/fonts/opentype
19 find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
20 '';
21
22 meta = {
23 description = "A set of monospaced OpenType fonts designed for coding environments";
24 maintainers = with stdenv.lib.maintainers; [ relrod ];
25 platforms = with stdenv.lib.platforms; all;
26 homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/";
27 license = stdenv.lib.licenses.ofl;
28 };
29}