nixpkgs/pkgs/data/fonts/tai-languages/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
960 B
Nix
Raw Normal View History

2023-01-25 11:34:24 +00:00
{ lib, stdenvNoCC, fetchurl }:
2015-10-18 19:35:09 +00:00
{
2023-01-25 11:34:24 +00:00
tai-ahom = stdenvNoCC.mkDerivation rec {
pname = "tai-ahom";
version = "unstable-2015-07-06";
2017-08-10 19:43:49 +00:00
2023-01-25 11:34:24 +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=";
};
2017-08-10 19:43:49 +00:00
2023-01-25 11:34:24 +00:00
dontUnpack = true;
2017-08-10 19:43:49 +00:00
2023-01-25 11:34:24 +00:00
installPhase = ''
runHook preInstall
2015-10-18 19:35:09 +00:00
2023-01-25 11:34:24 +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;
};
2015-10-18 19:35:09 +00:00
};
2023-01-25 11:34:24 +00:00
# TODO: package others (Khamti Shan, Tai Aiton, Tai Phake, and/or Assam Tai)
2015-10-18 19:35:09 +00:00
}