From d7ce65a977a053e7b70117b2e39c3be7c75bfa96 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 28 Oct 2022 10:01:48 +0900 Subject: hackgen-font: init at 2.7.1 --- pkgs/data/fonts/hackgen/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/data/fonts/hackgen/default.nix (limited to 'pkgs/data/fonts') diff --git a/pkgs/data/fonts/hackgen/default.nix b/pkgs/data/fonts/hackgen/default.nix new file mode 100644 index 0000000000000..5d87131c1028b --- /dev/null +++ b/pkgs/data/fonts/hackgen/default.nix @@ -0,0 +1,25 @@ +{ lib +, fetchzip +}: + +fetchzip rec { + pname = "hackgen-font"; + version = "2.7.1"; + + url = "https://github.com/yuru7/HackGen/releases/download/v${version}/HackGen_v${version}.zip"; + sha256 = "sha256-UL6U/q2u1UUP31lp0tEnFjzkn6dn8AY6hk5hJhPsOAE="; + postFetch = '' + install -Dm644 $out/*.ttf -t $out/share/fonts/hackgen + shopt -s extglob dotglob + rm -rf $out/!(share) + shopt -u extglob dotglob + ''; + + meta = with lib; { + description = "A composite font of Hack and GenJyuu-Goghic"; + homepage = "https://github.com/yuru7/HackGen"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ natsukium ]; + }; +} -- cgit 1.4.1