nixpkgs/pkgs/by-name/d2/d2coding/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1.1 KiB
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "d2codingfont";
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=";
};
installPhase = ''
runHook preInstall
install -Dm644 */*-all.ttc -t $out/share/fonts/truetype/
runHook postInstall
'';
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 version 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 = [ ];
};
}