2016-01-14 05:47:51 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2015-04-29 23:44:48 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "source-code-pro-${version}";
|
2016-08-27 09:41:36 +01:00
|
|
|
version = "2.030";
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2016-01-14 05:47:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adobe-fonts";
|
|
|
|
repo = "source-code-pro";
|
2016-08-27 09:41:36 +01:00
|
|
|
rev = "2.030R-ro/1.050R-it";
|
|
|
|
name = "2.030R-ro-1.050R-it";
|
|
|
|
sha256 = "0hc5kflr8xzqgdm0c3gbgb1paygznxmnivkylid69ipc7wnicx1n";
|
2015-04-29 23:44:48 +01:00
|
|
|
};
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2015-04-29 23:44:48 +01:00
|
|
|
phases = "unpackPhase installPhase";
|
2014-05-07 00:45:54 +01:00
|
|
|
|
2015-04-29 23:44:48 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
|
|
|
|
'';
|
2014-05-07 00:45:54 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of monospaced OpenType fonts designed for coding environments";
|
2015-04-29 23:44:48 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ relrod ];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2014-05-07 00:45:54 +01:00
|
|
|
homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/";
|
2015-04-29 23:44:48 +01:00
|
|
|
license = stdenv.lib.licenses.ofl;
|
2014-05-07 00:45:54 +01:00
|
|
|
};
|
2015-04-29 23:44:48 +01:00
|
|
|
}
|