nixpkgs/pkgs/data/fonts/lxgw-neoxihei/default.nix
2024-03-14 13:33:39 +00:00

33 lines
741 B
Nix

{ lib
, fetchurl
, stdenvNoCC
}:
stdenvNoCC.mkDerivation rec {
pname = "lxgw-neoxihei";
version = "1.120.1";
src = fetchurl {
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
hash = "sha256-shzJ5y2mjvodtSHct9gm+09CludxUpR38qi9zvewjaQ=";
};
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 ];
};
}