2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2014-05-26 20:58:31 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2019-01-13 23:01:06 +00:00
|
|
|
version = "2.010";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip {
|
|
|
|
name = "source-serif-pro-${version}";
|
2014-05-26 20:58:31 +01:00
|
|
|
|
2019-01-13 23:01:06 +00:00
|
|
|
url = "https://github.com/adobe-fonts/source-serif-pro/releases/download/${version}R-ro%2F1.010R-it/source-serif-pro-${version}R-ro-1.010R-it.zip";
|
2014-05-26 20:58:31 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
2019-01-13 23:01:06 +00:00
|
|
|
mkdir -p $out/share/fonts/{opentype,truetype,variable}
|
|
|
|
unzip -j $downloadedFile "*/OTF/*.otf" -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile "*/TTF/*.ttf" -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile "*/VAR/*.otf" -d $out/share/fonts/variable
|
2014-05-26 20:58:31 +01:00
|
|
|
'';
|
|
|
|
|
2019-01-13 23:01:06 +00:00
|
|
|
sha256 = "1a3lmqk7hyxpfkb30s9z73lhs823dmq6xr5llp9w23g6bh332x2h";
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2019-01-29 03:32:31 +00:00
|
|
|
homepage = https://adobe-fonts.github.io/source-serif-pro/;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|