2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, stdenvNoCC
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "lxgw-neoxihei";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.124";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-dvdzbUYFOuqBww03Dh8t3ocTJBzvZPlcAjwdFbDm9Ys=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm644 $src $out/share/fonts/truetype/LXGWNeoXiHei.ttf
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simplified Chinese sans-serif font derived from IPAex Gothic";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/lxgw/LxgwNeoXiHei";
|
|
|
|
license = licenses.ipa;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ zendo ];
|
|
|
|
};
|
|
|
|
}
|