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

26 lines
663 B
Nix
Raw Normal View History

2017-08-10 19:43:49 +00:00
{ stdenv, fetchzip }:
2014-05-26 19:58:31 +00:00
2017-08-10 19:43:49 +00:00
let
2015-04-29 22:45:13 +00:00
version = "1.017";
2017-08-10 19:43:49 +00:00
in fetchzip {
name = "source-serif-pro-${version}";
2014-05-26 19:58:31 +00:00
2017-08-10 19:43:49 +00:00
url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.zip";
2014-05-26 19:58:31 +00:00
2017-08-10 19:43:49 +00:00
postFetch = ''
2014-05-26 19:58:31 +00:00
mkdir -p $out/share/fonts/opentype
2017-08-10 19:43:49 +00:00
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
2014-05-26 19:58:31 +00:00
'';
2017-08-10 19:43:49 +00:00
sha256 = "04447fbj7lwr2qmmvy7d7624qdh4in7hp627nsc8vbpxmb7bbmn1";
2014-05-26 19:58:31 +00:00
meta = with stdenv.lib; {
homepage = https://sourceforge.net/adobe/sourceserifpro;
2014-05-26 19:58:31 +00:00
description = "A set of OpenType fonts to complement Source Sans Pro";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ ttuegel ];
};
}