blob: 5dc522aac2c157f029649b48a19527855a1bf2f1 (
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
|
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "source-code-pro-${version}";
version = "2.030";
src = fetchFromGitHub {
owner = "adobe-fonts";
repo = "source-code-pro";
rev = "2.030R-ro/1.050R-it";
name = "2.030R-ro-1.050R-it";
sha256 = "0hc5kflr8xzqgdm0c3gbgb1paygznxmnivkylid69ipc7wnicx1n";
};
phases = "unpackPhase installPhase";
installPhase = ''
mkdir -p $out/share/fonts/opentype
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
'';
meta = {
description = "A set of monospaced OpenType fonts designed for coding environments";
maintainers = with stdenv.lib.maintainers; [ relrod ];
platforms = with stdenv.lib.platforms; all;
homepage = https://blog.typekit.com/2012/09/24/source-code-pro/;
license = stdenv.lib.licenses.ofl;
};
}
|