@@ -0,0 +1,27 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, fontforge }:
2+
3+stdenv.mkDerivation rec {
4+ name = "tlwg-${version}";
5+ version = "0.6.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "tlwg";
9+ repo = "fonts-tlwg";
10+ rev = "v${version}";
11+ sha256 = "13bx98ygyyizb15ybdv3856lkxhx1fss8f7aiqmp0lk9zgw4mqyk";
12+ };
13+
14+ nativeBuildInputs = [ autoreconfHook ];
15+
16+ buildInputs = [ fontforge ];
17+
18+ preAutoreconf = "echo ${version} > VERSION";
19+
20+ meta = with stdenv.lib; {
21+ description = "A collection of Thai scalable fonts available under free licenses";
22+ homepage = https://linux.thai.net/projects/fonts-tlwg;
23+ license = with licenses; [ gpl2 publicDomain lppl13c free ];
24+ platforms = platforms.unix;
25+ maintainers = [ maintainers.yrashk ];
26+ };
27+}