3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/source-sans-pro/default.nix

25 lines
878 B
Nix
Raw Normal View History

2017-08-10 20:43:49 +01:00
{ stdenv, fetchzip }:
2014-05-26 20:55:32 +01:00
2017-08-10 20:43:49 +01:00
fetchzip {
2018-12-21 22:37:43 +00:00
name = "source-sans-pro-2.040";
2014-05-26 20:55:32 +01:00
2018-12-21 22:37:43 +00:00
url = "https://github.com/adobe-fonts/source-sans-pro/releases/download/2.040R-ro%2F1.090R-it/source-sans-pro-2.040R-ro-1.090R-it.zip";
2014-05-26 20:55:32 +01:00
2017-08-10 20:43:49 +01:00
postFetch = ''
2018-12-21 22:37:43 +00:00
mkdir -p $out/share/fonts/opentype $out/share/fonts/truetype $out/share/fonts/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:55:32 +01:00
'';
2018-12-21 22:37:43 +00:00
sha256 = "1n7z9xpxls74xxjsa61df1ln86y063m07w1f4sbxpjaa0frim4pp";
2017-08-10 20:43:49 +01:00
2014-05-26 20:55:32 +01:00
meta = with stdenv.lib; {
homepage = https://sourceforge.net/adobe/sourcesans;
2014-05-26 20:55:32 +01:00
description = "A set of OpenType fonts designed by Adobe for UIs";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ ttuegel ];
};
}