depot/third_party/nixpkgs/pkgs/data/fonts/sil-padauk/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

30 lines
845 B
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "sil-padauk";
version = "5.001";
src = fetchzip {
url = "https://software.sil.org/downloads/r/padauk/Padauk-${version}.zip";
hash = "sha256-rLzuDUd+idjTN0xQxblXQ9V2rQtJPN2EtWGmTRY1R7U=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mv *.ttf $out/share/fonts/truetype/
mkdir -p $out/share/doc/${pname}-${version}
mv *.txt documentation/ $out/share/doc/${pname}-${version}/
runHook postInstall
'';
meta = with lib; {
description = "A Unicode-based font family with broad support for writing systems that use the Myanmar script";
homepage = "https://software.sil.org/padauk";
license = licenses.ofl;
maintainers = with maintainers; [ serge ];
platforms = platforms.all;
};
}