about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/lao/default.nix
blob: abe359410b3abce7c7e3af48cb5307a9f7112b32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ fetchzip, lib }:

let
  version = "0.0.20060226";
in
fetchzip {
  name = "lao-${version}";
  url = "mirror://debian/pool/main/f/fonts-lao/fonts-lao_${version}.orig.tar.xz";
  sha256 = "sha256-Ti3DNOgLR5VBJ1mSe8M+qs4UYbCR7qOPgqxRfmHa+jY=";

  postFetch = ''
    mkdir -p $out/share/fonts
    tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lao-${version}/Phetsarath_OT.ttf
  '';

  meta = with lib; {
    description = "TrueType font for Lao language";
    license = licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ serge ];
    platforms = platforms.all;
  };
}