2019-05-12 18:55:32 -07:00
|
|
|
{ lib, fetchzip }:
|
2014-05-26 12:55:32 -07:00
|
|
|
|
2019-09-15 00:48:37 -07:00
|
|
|
let
|
|
|
|
version = "3.006";
|
|
|
|
in fetchzip {
|
|
|
|
name = "source-sans-pro-${version}";
|
2014-05-26 12:55:32 -07:00
|
|
|
|
2019-09-15 00:48:37 -07:00
|
|
|
url = "https://github.com/adobe-fonts/source-sans-pro/releases/download/${version}R/source-sans-pro-${version}R.zip";
|
2014-05-26 12:55:32 -07:00
|
|
|
|
2017-08-10 12:43:49 -07:00
|
|
|
postFetch = ''
|
2019-01-13 15:00:20 -08:00
|
|
|
mkdir -p $out/share/fonts/{opentype,truetype,variable}
|
2018-12-21 14:37:43 -08: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 12:55:32 -07:00
|
|
|
'';
|
|
|
|
|
2019-09-15 00:48:37 -07:00
|
|
|
sha256 = "11jd50cqiq2s0z39rclg73iiw2j5yzgs1glfs9psw5wbbisgysmr";
|
2017-08-10 12:43:49 -07:00
|
|
|
|
2019-05-12 18:55:32 -07:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://adobe-fonts.github.io/source-sans-pro/";
|
2014-05-26 12:55:32 -07:00
|
|
|
description = "A set of OpenType fonts designed by Adobe for UIs";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
|
|
|
}
|