2023-01-28 08:08:17 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2014-05-26 20:55:32 +01:00
|
|
|
|
2023-01-28 08:08:17 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "source-sans";
|
2023-08-07 19:28:37 +01:00
|
|
|
version = "3.052";
|
2014-05-26 20:55:32 +01:00
|
|
|
|
2023-01-28 08:08:17 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip";
|
2023-08-07 19:28:37 +01:00
|
|
|
hash = "sha256-yzbYy/ZS1GGlgJW+ARVWF4tjFqmMq7x+YqSQnojtQBs=";
|
2023-01-28 08:08:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2014-05-26 20:55:32 +01:00
|
|
|
|
2023-01-28 08:08:17 +00:00
|
|
|
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
|
|
|
|
install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype
|
2023-08-07 19:28:37 +01:00
|
|
|
install -Dm444 VF/*.otf -t $out/share/fonts/variable
|
2023-01-28 08:08:17 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-08-10 20:43:49 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2021-10-20 05:20:00 +01:00
|
|
|
homepage = "https://adobe-fonts.github.io/source-sans/";
|
|
|
|
description = "Sans serif font family for user interface environments";
|
2014-05-26 20:55:32 +01:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
2023-01-28 08:08:17 +00:00
|
|
|
}
|