From 8f7c7f90f7843fed975607774f797bca4b0a8fe8 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 30 Apr 2019 19:26:41 -0500 Subject: d2coding: init at 1.3.2 (coding font) --- pkgs/data/fonts/d2coding/default.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/data/fonts/d2coding/default.nix (limited to 'pkgs/data/fonts/d2coding') diff --git a/pkgs/data/fonts/d2coding/default.nix b/pkgs/data/fonts/d2coding/default.nix new file mode 100644 index 000000000000..abc0dba81654 --- /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 ]; + }; +} -- cgit v1.2.3