2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "source-serif";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "4.004";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/adobe-fonts/source-serif/releases/download/${version}R/source-serif-${version}.zip";
|
|
|
|
hash = "sha256-tGSMOwYBEZat7MI78wkPr6lgJdsOdOaIZb+IAOoOlq4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
|
|
|
|
install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype
|
|
|
|
install -Dm444 VAR/*.otf -t $out/share/fonts/variable
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
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-serif/";
|
|
|
|
description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|