nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "sil-padauk";
9 version = "5.100";
10
11 src = fetchzip {
12 url = "https://software.sil.org/downloads/r/padauk/Padauk-${version}.zip";
13 hash = "sha256-Y4ZcxbPcgF349wDuT352xqaJji+FMfBH6P7WSWOw2iI=";
14 };
15
16 installPhase = ''
17 runHook preInstall
18
19 mkdir -p $out/share/fonts/truetype
20 mv *.ttf $out/share/fonts/truetype/
21 mkdir -p $out/share/doc/${pname}-${version}
22 mv *.txt documentation/ $out/share/doc/${pname}-${version}/
23
24 runHook postInstall
25 '';
26
27 meta = {
28 description = "Unicode-based font family with broad support for writing systems that use the Myanmar script";
29 homepage = "https://software.sil.org/padauk";
30 license = lib.licenses.ofl;
31 maintainers = with lib.maintainers; [ serge ];
32 platforms = lib.platforms.all;
33 };
34}