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

26 lines
663 B
Nix
Raw Normal View History

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