{ lib , fetchurl , stdenvNoCC }: stdenvNoCC.mkDerivation rec { pname = "lxgw-neoxihei"; version = "1.123"; src = fetchurl { url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf"; hash = "sha256-tXsJyz8O6Resenjp4ODS3YAYjE8pM0j/JiaCRQWmT9g="; }; dontUnpack = true; installPhase = '' runHook preInstall install -Dm644 $src $out/share/fonts/truetype/LXGWNeoXiHei.ttf runHook postInstall ''; meta = with lib; { description = "A Simplified Chinese sans-serif font derived from IPAex Gothic"; homepage = "https://github.com/lxgw/LxgwNeoXiHei"; license = licenses.ipa; platforms = platforms.all; maintainers = with maintainers; [ zendo ]; }; }