nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "source-serif";
5 version = "4.004";
6
7 src = fetchzip {
8 url = "https://github.com/adobe-fonts/source-serif/releases/download/${version}R/source-serif-${version}.zip";
9 hash = "sha256-tGSMOwYBEZat7MI78wkPr6lgJdsOdOaIZb+IAOoOlq4=";
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 VAR/*.otf -t $out/share/fonts/variable
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 homepage = "https://adobe-fonts.github.io/source-serif/";
24 description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans";
25 license = licenses.ofl;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ ttuegel ];
28 };
29}