472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
30 lines
732 B
Nix
30 lines
732 B
Nix
{ stdenvNoCC
|
|
, fetchurl
|
|
, lib
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lxgw-wenkai-tc";
|
|
version = "1.500";
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwWenKaiTC/releases/download/v${version}/lxgw-wenkai-tc-v${version}.tar.gz";
|
|
hash = "sha256-GuGIRgBQTmlKmarEVFmZ2RgYtlw6mz3nfFdWbjlm934=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
mv *.ttf $out/share/fonts/truetype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/lxgw/LxgwWenKaiTC";
|
|
description = "Traditional Chinese Edition of LXGW WenKai";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ lebensterben ];
|
|
};
|
|
}
|