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