nixpkgs/pkgs/data/fonts/source-code-pro/default.nix

30 lines
837 B
Nix
Raw Normal View History

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