about summary refs log tree commit diff
path: root/pkgs/data/fonts/baekmuk-ttf/default.nix
blob: ba1f21c186e1a4213b2e3866e4909787602e8a21 (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
30
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "baekmuk-ttf-2.2";

  src = fetchurl {
    url = "http://kldp.net/baekmuk/release/865-${name}.tar.gz";
    sha256 = "10hqspl70h141ywz1smlzdanlx9vwgsp1qrcjk68fn2xnpzpvaq8";
  };

  dontBuild = true;

  installPhase = let
    fonts_dir = "$out/share/fonts";
    doc_dir = "$out/share/doc/${name}";
  in ''
    mkdir -pv ${fonts_dir}
    mkdir -pv ${doc_dir}
    cp ttf/*.ttf ${fonts_dir}
    cp COPYRIGHT* ${doc_dir}
  '';

  meta = {
    description = "Korean font";
    homepage = http://kldp.net/projects/baekmuk/;
    license = "BSD-like";
    platforms = stdenv.lib.platforms.linux;
  };
}