aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkgs/source-han-code-jp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/source-han-code-jp/default.nix')
-rw-r--r--pkgs/source-han-code-jp/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/source-han-code-jp/default.nix b/pkgs/source-han-code-jp/default.nix
new file mode 100644
index 0000000..e4b0be2
--- /dev/null
+++ b/pkgs/source-han-code-jp/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ pname = "source-han-code-jp";
+ version = "2.012R";
+
+ src = fetchurl {
+ url = "https://github.com/adobe-fonts/source-han-code-jp/releases/download/${version}/SourceHanCodeJP.ttc";
+ sha256 = "sha256-9DCTixBW55/2DPQih247u9NI9XjTj/ZDB04taZLNlfU=";
+ };
+
+ dontUnpack = true;
+
+ installPhase = ''
+ mkdir -p $out/share/fonts
+ cp $src $out/share/fonts/SourceHanCodeJP.ttc
+ '';
+
+ meta = with lib; {
+ description = "A derivative of Source Han Sans for coding";
+ homepage = "https://github.com/adobe-fonts/source-han-code-jp";
+ license = licenses.ofl;
+ };
+}