2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2014-05-26 21:58:31 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
let
|
2019-09-07 00:04:01 +02:00
|
|
|
version = "3.000";
|
2017-08-10 21:43:49 +02:00
|
|
|
in fetchzip {
|
|
|
|
name = "source-serif-pro-${version}";
|
2014-05-26 21:58:31 +02:00
|
|
|
|
2019-09-07 00:04:01 +02:00
|
|
|
url = "https://github.com/adobe-fonts/source-serif-pro/releases/download/${version}R/source-serif-pro-${version}R.zip";
|
2014-05-26 21:58:31 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
2019-01-14 00:01:06 +01:00
|
|
|
mkdir -p $out/share/fonts/{opentype,truetype,variable}
|
2019-09-07 00:04:01 +02:00
|
|
|
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 21:58:31 +02:00
|
|
|
'';
|
|
|
|
|
2019-09-07 00:04:01 +02:00
|
|
|
sha256 = "06yp8y79mqk02qzp81h8zkmzqqlhicgrkwmzkd0bm338xh8grsiz";
|
2017-08-10 21:43:49 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2019-01-29 04:32:31 +01:00
|
|
|
homepage = https://adobe-fonts.github.io/source-serif-pro/;
|
2014-05-26 21:58:31 +02:00
|
|
|
description = "A set of OpenType fonts to complement Source Sans Pro";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|