acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / d2 / d2coding / package.nix
blob867345c3a856549e83c4299c6ccdd2c65d84ef11
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "d2codingfont";
5   version = "1.3.2";
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   };
13   installPhase = ''
14     runHook preInstall
16     install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/
18     runHook postInstall
19   '';
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 = [ ];
34   };