depot/third_party/nixpkgs/pkgs/data/fonts/d2coding/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

33 lines
1.2 KiB
Nix

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
let
version = "1.3.2";
pname = "d2codingfont";
in (fetchzip {
name = "${pname}-${version}";
url = "https://github.com/naver/${pname}/releases/download/VER${version}/D2Coding-Ver${version}-20180524.zip";
sha256 = "1812r82530wzfki7k9cm35fy6k2lvis7j6w0w8svc784949m1wwj";
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 ];
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*-all.ttc -d $out/share/fonts/truetype/
'';
})