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

25 lines
700 B
Nix
Raw Normal View History

2017-08-10 21:43:49 +02:00
{ stdenv, fetchzip }:
2014-05-07 01:45:54 +02:00
2017-08-10 21:43:49 +02:00
let
2016-08-27 10:41:36 +02:00
version = "2.030";
2017-08-10 21:43:49 +02:00
in fetchzip {
name = "source-code-pro-${version}";
2014-05-07 01:45:54 +02:00
2017-08-10 21:43:49 +02:00
url = https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip;
2014-05-07 01:45:54 +02:00
2017-08-10 21:43:49 +02:00
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
2015-04-30 00:44:48 +02:00
'';
2014-05-07 01:45:54 +02:00
2017-08-10 21:43:49 +02:00
sha256 = "0d8qwzjgnz264wlm4qim048z3236z4hbblvc6yplw13f6b65j6fv";
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;
homepage = https://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
}