2022-09-29 07:52:55 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2019-06-16 19:59:06 +00:00
|
|
|
{ lib, fetchzip }:
|
2019-05-01 00:26:41 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.3.2";
|
|
|
|
pname = "d2codingfont";
|
|
|
|
|
2022-09-29 07:52:55 +00:00
|
|
|
in (fetchzip {
|
2019-05-01 00:26:41 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
|
|
|
|
|
|
|
|
sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj";
|
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 00:26:41 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/naver/d2codingfont";
|
2019-05-01 00:26:41 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
2022-09-29 07:52:55 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/
|
|
|
|
'';
|
|
|
|
})
|