1{ stdenv, fetchzip }:
2
3let
4 version = "2.030";
5in fetchzip {
6 name = "source-code-pro-${version}";
7
8 url = https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip;
9
10 postFetch = ''
11 mkdir -p $out/share/fonts
12 unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
13 '';
14
15 sha256 = "0d8qwzjgnz264wlm4qim048z3236z4hbblvc6yplw13f6b65j6fv";
16
17 meta = {
18 description = "A set of monospaced OpenType fonts designed for coding environments";
19 maintainers = with stdenv.lib.maintainers; [ relrod ];
20 platforms = with stdenv.lib.platforms; all;
21 homepage = https://blog.typekit.com/2012/09/24/source-code-pro/;
22 license = stdenv.lib.licenses.ofl;
23 };
24}