nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3let
4 majorVersion = "0";
5 minorVersion = "200";
6in
7stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "ferrum";
9 version = "${majorVersion}.${minorVersion}";
10
11 src = fetchzip {
12 url = "https://dotcolon.net/download/fonts/${finalAttrs.pname}_${majorVersion}${minorVersion}.zip";
13 hash = "sha256-NDJwgFWZgyhMkGRWlY55l2omEw6ju3e3dHCEsWNzQIc=";
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 = "A decorative font";
28 platforms = platforms.all;
29 maintainers = with maintainers; [ leenaars minijackson ];
30 license = licenses.cc0;
31 };
32})