2015-04-30 00:44:48 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2014-05-07 01:45:54 +02:00
|
|
|
|
2015-04-30 00:44:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "source-code-pro-${version}";
|
2015-07-20 15:46:14 +02:00
|
|
|
version = "2.010";
|
|
|
|
version_italic = "1.030";
|
2014-05-07 01:45:54 +02:00
|
|
|
|
2015-04-30 00:44:48 +02:00
|
|
|
src = fetchurl {
|
2015-07-20 15:46:14 +02:00
|
|
|
url="https://github.com/adobe-fonts/source-code-pro/archive/${version}R-ro/${version_italic}R-it.tar.gz";
|
2015-11-22 02:20:39 +01:00
|
|
|
sha256="1y44p2i7hd1klq81xbh796y7n4rzjvn37jrqw0nz31k59v8a1r9y";
|
2015-04-30 00:44:48 +02:00
|
|
|
};
|
2014-05-07 01:45:54 +02:00
|
|
|
|
2015-04-30 00:44:48 +02:00
|
|
|
phases = "unpackPhase installPhase";
|
2014-05-07 01:45:54 +02:00
|
|
|
|
2015-04-30 00:44:48 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
|
|
|
|
'';
|
2014-05-07 01:45:54 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of monospaced OpenType fonts designed for coding environments";
|
2015-04-30 00:44:48 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ relrod ];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2014-05-07 01:45:54 +02:00
|
|
|
homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/";
|
2015-04-30 00:44:48 +02:00
|
|
|
license = stdenv.lib.licenses.ofl;
|
2014-05-07 01:45:54 +02:00
|
|
|
};
|
2015-04-30 00:44:48 +02:00
|
|
|
}
|