diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-08 22:14:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-08 22:14:57 +0900 |
| commit | 7b625b804f580968d5836d01db262401eb38e321 (patch) | |
| tree | 8d9148b20d4ff973a8e50692d6a3b9b8085386f2 /pkgs | |
| parent | 3676d489fbf39380e9f59d6abd4c20725180c4cc (diff) | |
| download | nur-packages-7b625b804f580968d5836d01db262401eb38e321.tar.gz nur-packages-7b625b804f580968d5836d01db262401eb38e321.tar.zst nur-packages-7b625b804f580968d5836d01db262401eb38e321.zip | |
feat(source-han-code-jp): new
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/source-han-code-jp/default.nix | 24 |
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; + }; +} |
