1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/by-name/zi/zilla-slab/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

40 lines
1.1 KiB
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "zilla-slab";
version = "1.002";
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
'';
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;
};
}