2025-01-24 13:40:38 +00:00

34 lines
742 B
Nix

{
lib,
fetchurl,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation rec {
pname = "lxgw-neoxihei";
version = "1.212";
src = fetchurl {
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
hash = "sha256-g64kMY/9kHSlUH2rvDxKy4nmS+TH//SNJfCnQXHC4Q8=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/share/fonts/truetype/LXGWNeoXiHei.ttf
runHook postInstall
'';
meta = with lib; {
description = "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 ];
};
}