nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "source-serif";
9 version = "4.005";
10
11 src = fetchzip {
12 url = "https://github.com/adobe-fonts/source-serif/archive/refs/tags/${version}R.zip";
13 hash = "sha256-djeRJWcKqirkHus52JSeZJXeB7yMTnUXpkPxyzgRC04=";
14 };
15
16 installPhase = ''
17 runHook preInstall
18
19 install -Dm444 OTF/*.otf -t $out/share/fonts/opentype
20 install -Dm444 TTF/*.ttf -t $out/share/fonts/truetype
21 install -Dm444 VAR/*.otf -t $out/share/fonts/variable
22
23 runHook postInstall
24 '';
25
26 meta = {
27 homepage = "https://adobe-fonts.github.io/source-serif/";
28 description = "Typeface for setting text in many sizes, weights, and languages. Designed to complement Source Sans";
29 license = lib.licenses.ofl;
30 platforms = lib.platforms.all;
31 maintainers = with lib.maintainers; [ ttuegel ];
32 };
33}