2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, stdenvNoCC
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "lxgw-neoxihei";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.206";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-jsLQLD5dfzguFkk7Q3oHe5Jd6h+XA/Qkg9MqyqHQ8v4=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|