about summary refs log tree commit diff
path: root/pkgs/data/fonts/hackgen/nerdfont.nix
blob: f563a2eb479b03a8eddaa1706be9649bf79a54e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib
, fetchzip
}:

fetchzip rec {
  pname = "hackgen-nf-font";
  version = "2.8.0";

  url = "https://github.com/yuru7/HackGen/releases/download/v${version}/HackGen_NF_v${version}.zip";
  sha256 = "sha256-xRFedeavEJY9OZg+gePF5ImpLTYdbSba5Wr9k0ivpkE=";
  postFetch = ''
    install -Dm644 $out/*.ttf -t $out/share/fonts/hackgen-nf
    shopt -s extglob dotglob
    rm -rf $out/!(share)
    shopt -u extglob dotglob
  '';

  meta = with lib; {
    description = "A composite font of Hack, GenJyuu-Gothic and nerd-fonts";
    homepage = "https://github.com/yuru7/HackGen";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ natsukium ];
  };
}