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

25 lines
694 B
Nix
Raw Normal View History

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