From 95175cff45d7b19e7f91a58f46de2421fdc22e62 Mon Sep 17 00:00:00 2001 From: Masayuki Takeda Date: Sat, 30 Jun 2018 15:39:12 -0400 Subject: [PATCH] source-han-code-jp: init at 2.011R --- .../data/fonts/source-han-code-jp/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/data/fonts/source-han-code-jp/default.nix diff --git a/pkgs/data/fonts/source-han-code-jp/default.nix b/pkgs/data/fonts/source-han-code-jp/default.nix new file mode 100644 index 000000000000..fc016a457c22 --- /dev/null +++ b/pkgs/data/fonts/source-han-code-jp/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchzip }: + +let + pname = "source-han-code-jp"; + version = "2.011R"; +in fetchzip { + name = "${pname}-${version}"; + + url = "https://github.com/adobe-fonts/${pname}/archive/${version}.zip"; + + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + ''; + + sha256 = "184vrjkymcm29k1cx00cdvjchzqr1w17925lmh85f0frx7vwljcd"; + + meta = { + description = "A monospaced Latin font suitable for coding"; + maintainers = with stdenv.lib.maintainers; [ mt-caret ]; + platforms = with stdenv.lib.platforms; all; + homepage = https://blogs.adobe.com/CCJKType/2015/06/source-han-code-jp.html; + license = stdenv.lib.licenses.ofl; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a43f04e9411d..e2c4b4081e9c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14887,6 +14887,8 @@ with pkgs; source-serif-pro = callPackage ../data/fonts/source-serif-pro { }; + source-han-code-jp = callPackage ../data/fonts/source-han-code-jp { }; + sourceHanSansPackages = callPackage ../data/fonts/source-han-sans { }; source-han-sans-japanese = sourceHanSansPackages.japanese; source-han-sans-korean = sourceHanSansPackages.korean;