nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "zilla-slab";
5 version = "1.002";
6
7 src = fetchzip {
8 url = "https://github.com/mozilla/zilla-slab/releases/download/v${version}/Zilla-Slab-Fonts-v${version}.zip";
9 stripRoot = false;
10 hash = "sha256-yOHu+dSWlyI7w1N1teED9R1Fphso2bKAlYDC1KdqBCc=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 mkdir -p $out/share/fonts/truetype
17 cp -v zilla-slab/ttf/*.ttf $out/share/fonts/truetype/
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/mozilla/zilla-slab";
24 description = "Zilla Slab fonts";
25 longDescription = ''
26 Zilla Slab is Mozilla's core typeface, used
27 for the Mozilla wordmark, headlines and
28 throughout their designs. A contemporary
29 slab serif, based on Typotheque's Tesla, it
30 is constructed with smooth curves and true
31 italics, which gives text an unexpectedly
32 sophisticated industrial look and a friendly
33 approachability in all weights.
34 '';
35 license = licenses.ofl;
36 maintainers = with maintainers; [ caugner ];
37 platforms = platforms.all;
38 };
39}