mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
33 lines
741 B
Nix
33 lines
741 B
Nix
{ lib
|
|
, fetchurl
|
|
, stdenvNoCC
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lxgw-neoxihei";
|
|
version = "1.120.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
|
|
hash = "sha256-RN0OmNS3aSRMK19nNiqXYJ4PIAQh6u5W/+L8DCeqMcE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|