about summary refs log tree commit diff
path: root/pkgs/data/fonts/nanum-gothic-coding/default.nix
blob: 3798a33b66c676c8d87920a6b7dfd1e0750921b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation rec {
  pname = "nanum-gothic-coding";
  version = "2.5";

  src = fetchzip {
    url = "https://github.com/naver/nanumfont/releases/download/VER${version}/NanumGothicCoding-${version}.zip";
    stripRoot = false;
    hash = "sha256-jHbbCMUxn54iQMKdAWI3r8CDxi+5LLJh8ucQzq2Ukdc=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/NanumGothicCoding
    cp *.ttf $out/share/fonts/NanumGothicCoding

    runHook postInstall
  '';

  meta = with lib; {
    description = "A contemporary monospaced sans-serif typeface with a warm touch";
    homepage = "https://github.com/naver/nanumfont";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ ];
  };
}