From 813fb1e6ac21a8ffb59a61742d92b4d002cf15fc Mon Sep 17 00:00:00 2001 From: linsui Date: Fri, 8 Oct 2021 22:36:14 +0800 Subject: [PATCH] i-dot-ming: init 7.01 --- pkgs/data/fonts/i-dot-ming/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/data/fonts/i-dot-ming/default.nix diff --git a/pkgs/data/fonts/i-dot-ming/default.nix b/pkgs/data/fonts/i-dot-ming/default.nix new file mode 100644 index 000000000000..766440032f3a --- /dev/null +++ b/pkgs/data/fonts/i-dot-ming/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchzip }: + +let + version = "7.01"; +in +fetchzip { + name = "i.ming-${version}"; + url = "https://raw.githubusercontent.com/ichitenfont/I.Ming/${version}/${version}/I.Ming-${version}.ttf"; + sha256 = "1b2dj7spkznpkad8a0blqigj9f6ism057r0wn9wdqg5g88yp32vd"; + + postFetch = '' + install -DT -m444 $downloadedFile $out/share/fonts/truetype/I.Ming/I.Ming.ttf + ''; + + meta = with lib; { + description = "An open source Pan-CJK serif typeface"; + homepage = "https://github.com/ichitenfont/I.Ming"; + license = licenses.ipa; + platforms = platforms.all; + maintainers = [ maintainers.linsui ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f47f9875b49..0f33727e10be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22726,6 +22726,8 @@ with pkgs; ia-writer-duospace = callPackage ../data/fonts/ia-writer-duospace { }; + i-dot-ming = callPackage ../data/fonts/i-dot-ming { }; + ibm-plex = callPackage ../data/fonts/ibm-plex { }; iconpack-jade = callPackage ../data/icons/iconpack-jade { };