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

25 lines
674 B
Nix
Raw Normal View History

{ lib, 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
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";
maintainers = with lib.maintainers; [ relrod ];
platforms = with lib.platforms; all;
homepage = "https://adobe-fonts.github.io/source-code-pro/";
license = lib.licenses.ofl;
2014-05-07 01:45:54 +02:00
};
2015-04-30 00:44:48 +02:00
}