2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "3.046";
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchzip {
|
2021-10-28 06:52:43 +00:00
|
|
|
name = "source-sans-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "1wxdinnliq0xqbjrs0sqykwaggkmyqawfq862d9xn05g1pnxda94";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://adobe-fonts.github.io/source-sans/";
|
|
|
|
description = "Sans serif font family for user interface environments";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
|
|
|
}
|