aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--default.nix2
-rw-r--r--pkgs/source-han-code-jp/default.nix24
2 files changed, 26 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index 7443a5b..b6474fd 100644
--- a/default.nix
+++ b/default.nix
@@ -17,8 +17,10 @@
overlays = import ./overlays; # nixpkgs overlays
example-package = pkgs.callPackage ./pkgs/example-package { };
+
claude-code = pkgs.callPackage ./pkgs/claude-code { };
hgrep = pkgs.callPackage ./pkgs/hgrep { };
+ source-han-code-jp = pkgs.callPackage ./pkgs/source-han-code-jp { };
git-helpers = pkgs.callPackage ./pkgs/git-helpers { };
reparojson = pkgs.callPackage ./pkgs/reparojson { };
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;
+ };
+}