nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 28 lines 676 B view raw
1{ lib, stdenvNoCC, fetchurl }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "khmeros"; 5 version = "5.0"; 6 7 src = fetchurl { 8 url = "mirror://debian/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.xz"; 9 hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw="; 10 }; 11 12 installPhase = '' 13 runHook preInstall 14 15 mkdir -p $out/share/fonts 16 cp *.ttf $out/share/fonts 17 18 runHook postInstall 19 ''; 20 21 meta = with lib; { 22 description = "KhmerOS Unicode fonts for the Khmer language"; 23 homepage = "http://www.khmeros.info/"; 24 license = licenses.gpl2Plus; 25 maintainers = with lib.maintainers; [ serge ]; 26 platforms = platforms.all; 27 }; 28}