2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
{
|
2023-02-02 18:25:31 +00:00
|
|
|
tai-ahom = stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "tai-ahom";
|
|
|
|
version = "unstable-2015-07-06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/enabling-languages/tai-languages/raw/b57a3ea4589af69bb8e87c6c4bb7cd367b52f0b7/ahom/.fonts/ttf/.original/AhomUnicode_FromMartin.ttf";
|
|
|
|
hash = "sha256-U1vcVf/VgXhvK1f2Iw2JKkd2EzJgz7KbHAwnUanX8n4=";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
install -Dm644 $src $out/share/fonts/truetype/AhomUnicode.ttf
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/enabling-languages/tai-languages";
|
|
|
|
description = "Unicode-compliant Tai Ahom font";
|
|
|
|
maintainers = with maintainers; [ mathnerd314 ];
|
|
|
|
license = licenses.ofl; # See font metadata
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# TODO: package others (Khamti Shan, Tai Aiton, Tai Phake, and/or Assam Tai)
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
}
|