2023-01-18 21:29:32 +01:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2022-04-22 01:51:01 +02:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "khmeros";
|
2022-04-22 01:51:01 +02:00
|
|
|
version = "5.0";
|
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz";
|
|
|
|
hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-04-22 01:51:01 +02:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
cp *.ttf $out/share/fonts
|
2023-01-18 21:29:32 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2022-04-22 01:51:01 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "KhmerOS Unicode fonts for the Khmer language";
|
|
|
|
homepage = "http://www.khmeros.info/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ serge ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|