2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2014-05-26 21:55:32 +02:00
|
|
|
|
2019-09-15 09:48:37 +02:00
|
|
|
let
|
2021-10-20 06:20:00 +02:00
|
|
|
version = "3.046";
|
2019-09-15 09:48:37 +02:00
|
|
|
in fetchzip {
|
2021-10-20 06:20:00 +02:00
|
|
|
name = "source-sans-${version}";
|
2014-05-26 21:55:32 +02:00
|
|
|
|
2021-10-20 06:20:00 +02:00
|
|
|
url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip";
|
2014-05-26 21:55:32 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
2019-01-14 00:00:20 +01:00
|
|
|
mkdir -p $out/share/fonts/{opentype,truetype,variable}
|
2018-12-21 23:37:43 +01: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:55:32 +02:00
|
|
|
'';
|
|
|
|
|
2021-10-20 06:20:00 +02:00
|
|
|
sha256 = "1wxdinnliq0xqbjrs0sqykwaggkmyqawfq862d9xn05g1pnxda94";
|
2017-08-10 21:43:49 +02:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2021-10-20 06:20:00 +02:00
|
|
|
homepage = "https://adobe-fonts.github.io/source-sans/";
|
|
|
|
description = "Sans serif font family for user interface environments";
|
2014-05-26 21:55:32 +02:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
|
|
|
}
|