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 = "zilla-slab";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "1.002";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mozilla/zilla-slab/releases/download/v${version}/Zilla-Slab-Fonts-v${version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-yOHu+dSWlyI7w1N1teED9R1Fphso2bKAlYDC1KdqBCc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp -v zilla-slab/ttf/*.ttf $out/share/fonts/truetype/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mozilla/zilla-slab";
|
|
|
|
description = "Zilla Slab fonts";
|
|
|
|
longDescription = ''
|
|
|
|
Zilla Slab is Mozilla's core typeface, used
|
|
|
|
for the Mozilla wordmark, headlines and
|
|
|
|
throughout their designs. A contemporary
|
|
|
|
slab serif, based on Typotheque's Tesla, it
|
|
|
|
is constructed with smooth curves and true
|
|
|
|
italics, which gives text an unexpectedly
|
|
|
|
sophisticated industrial look and a friendly
|
|
|
|
approachability in all weights.
|
|
|
|
'';
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ caugner ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|