1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "source-sans";
5 version = "3.052";
6
7 src = fetchzip {
8 url = "https://github.com/adobe-fonts/source-sans/archive/${version}R.zip";
9 hash = "sha256-yzbYy/ZS1GGlgJW+ARVWF4tjFqmMq7x+YqSQnojtQBs=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
16 install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype
17 install -Dm444 VF/*.otf -t $out/share/fonts/variable
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 homepage = "https://adobe-fonts.github.io/source-sans/";
24 description = "Sans serif font family for user interface environments";
25 license = licenses.ofl;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ ttuegel ];
28 };
29}