nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "mononoki";
5 version = "1.6";
6
7 src = fetchzip {
8 url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip";
9 stripRoot = false;
10 hash = "sha256-HQM9rzIJXLOScPEXZu0MzRlblLfbVVNJ+YvpONxXuwQ=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 mkdir -p $out/share/fonts/mononoki
17 cp * $out/share/fonts/mononoki
18
19 runHook postInstall
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/madmalik/mononoki";
24 description = "A font for programming and code review";
25 license = licenses.ofl;
26 platforms = platforms.all;
27 };
28}