2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "d2codingfont";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-iC6iaUSVg4zt3wVFJUU4HEeswuKDOTFsAxq/0gRiOCA=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with 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 ];
|
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
}
|