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

25 lines
700 B
Nix
Raw Normal View History

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