at 23.11-beta 35 lines 1.1 kB view raw
1{ lib, stdenvNoCC, fetchzip }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "d2codingfont"; 5 version = "1.3.2"; 6 7 src = fetchzip { 8 url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip"; 9 stripRoot = false; 10 hash = "sha256-iC6iaUSVg4zt3wVFJUU4HEeswuKDOTFsAxq/0gRiOCA="; 11 }; 12 13 installPhase = '' 14 runHook preInstall 15 16 install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/ 17 18 runHook postInstall 19 ''; 20 21 meta = with lib; { 22 description = "Monospace font with support for Korean and latin characters"; 23 longDescription = '' 24 D2Coding is a monospace font developed by a Korean IT Company called Naver. 25 Font is good for displaying both Korean characters and latin characters, 26 as sometimes these two languages could share some similar strokes. 27 Since version 1.3, D2Coding font is officially supported by the font 28 creator, with symbols for Powerline. 29 ''; 30 homepage = "https://github.com/naver/d2codingfont"; 31 license = licenses.ofl; 32 platforms = platforms.all; 33 maintainers = with maintainers; [ dtzWill ]; 34 }; 35}