1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "hackgen-font";
5 version = "2.9.0";
6
7 src = fetchzip {
8 url = "https://github.com/yuru7/HackGen/releases/download/v${version}/HackGen_v${version}.zip";
9 hash = "sha256-Ah2oVP8nzFiYA76kMPa9+YHQwFxq4i1muwkcmC7TzOk=";
10 };
11
12 installPhase = ''
13 runHook preInstall
14
15 install -Dm644 *.ttf -t $out/share/fonts/hackgen
16
17 runHook postInstall
18 '';
19
20 meta = with lib; {
21 description = "Composite font of Hack and GenJyuu-Goghic";
22 homepage = "https://github.com/yuru7/HackGen";
23 license = licenses.ofl;
24 platforms = platforms.all;
25 maintainers = with maintainers; [ natsukium ];
26 };
27}