about summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2022-10-28 10:01:48 +0900
committernatsukium <tomoya.otabi@gmail.com>2022-10-28 10:01:48 +0900
commitd7ce65a977a053e7b70117b2e39c3be7c75bfa96 (patch)
tree79963c39769329c4a76e108675752faac4bd5641 /pkgs/data/fonts
parent179706319fbdcbd78d916845073a4c0706dea086 (diff)
hackgen-font: init at 2.7.1
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/hackgen/default.nix25
1 files changed, 25 insertions, 0 deletions
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 ];
+  };
+}