summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-04-30 19:26:41 -0500
committerWill Dietz <w@wdtz.org>2019-04-30 19:56:52 -0500
commit8f7c7f90f7843fed975607774f797bca4b0a8fe8 (patch)
treeaa6d7a3f49625ff50f5f68f9a5236c7a330f8ce1
parent06041661f88478e6ff67821819ab8803a5c67e16 (diff)
downloadnixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar.gz
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar.bz2
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar.lz
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar.xz
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.tar.zst
nixpkgs-8f7c7f90f7843fed975607774f797bca4b0a8fe8.zip
d2coding: init at 1.3.2 (coding font)
-rw-r--r--pkgs/data/fonts/d2coding/default.nix32
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/data/fonts/d2coding/default.nix b/pkgs/data/fonts/d2coding/default.nix
new file mode 100644
index 00000000000..abc0dba8165
--- /dev/null
+++ b/pkgs/data/fonts/d2coding/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchzip, unzip }:
+
+let
+  version = "1.3.2";
+  pname = "d2codingfont";
+
+in fetchzip rec {
+  name = "${pname}-${version}";
+  url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
+
+  postFetch = ''
+    mkdir -p $out/share/fonts
+    unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/
+  '';
+
+  sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj";
+
+  meta = with stdenv.lib; {
+    description = "Monospace font with support for Korean and latin characters";
+    longDescription = ''
+      D2Coding is a monospace font developed by a Korean IT Company called Naver.
+      Font is good for displaying both Korean characters and latin characters,
+      as sometimes these two languages could share some similar strokes.
+      Since verion 1.3, D2Coding font is officially supported by the font
+      creator, with symbols for Powerline.
+    '';
+    homepage = https://github.com/naver/d2codingfont;
+    license = licenses.ofl;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ dtzWill ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 962fcd90f08..795330f2767 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -15965,6 +15965,8 @@ in
 
   cooper-hewitt = callPackage ../data/fonts/cooper-hewitt { };
 
+  d2coding = callPackage ../data/fonts/d2coding { };
+
   dosis = callPackage ../data/fonts/dosis { };
 
   dosemu_fonts = callPackage ../data/fonts/dosemu-fonts { };