nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3let
4 majorVersion = "0";
5 minorVersion = "100";
6in
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "penna";
9 version = "${majorVersion}.${minorVersion}";
10
11 src = fetchzip {
12 url = "https://dotcolon.net/download/fonts/${finalAttrs.pname}_${majorVersion}${minorVersion}.zip";
13 hash = "sha256-fmCJnEaoUGdW9JK3J7JSm5D4qOMRW7qVKPgVE7uCH5w=";
14 stripRoot = false;
15 };
16
17 installPhase = ''
18 runHook preInstall
19
20 install -D -m444 -t $out/share/fonts/opentype $src/*.otf
21
22 runHook postInstall
23 '';
24
25 meta = with lib; {
26 homepage = "http://dotcolon.net/font/${finalAttrs.pname}/";
27 description = "Geometric sans serif designed by Sora Sagano";
28 longDescription = ''
29 Penna is a geometric sans serif designed by Sora Sagano,
30 with outsized counters in the uppercase and a lowercase
31 with a small x-height.
32 '';
33 platforms = platforms.all;
34 maintainers = with maintainers; [ leenaars minijackson ];
35 license = licenses.cc0;
36 };
37})