summary refs log tree commit diff
path: root/pkgs/data/fonts/tlwg/default.nix
blob: 2e3a0a95c0552085c6e35b7e3177b9cdd3da7a43 (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
{ stdenv, fetchFromGitHub, autoreconfHook, fontforge }:

stdenv.mkDerivation rec {
  pname = "tlwg";
  version = "0.6.4";

  src = fetchFromGitHub {
    owner = "tlwg";
    repo = "fonts-tlwg";
    rev = "v${version}";
    sha256 = "13bx98ygyyizb15ybdv3856lkxhx1fss8f7aiqmp0lk9zgw4mqyk";
  };

  nativeBuildInputs = [ autoreconfHook ];

  buildInputs = [ fontforge ];

  preAutoreconf = "echo ${version} > VERSION";

  meta = with stdenv.lib; {
    description = "A collection of Thai scalable fonts available under free licenses";
    homepage = "https://linux.thai.net/projects/fonts-tlwg";
    license = with licenses; [ gpl2 publicDomain lppl13c free ];
    maintainers = [ maintainers.yrashk ];
  };
}