depot/third_party/nixpkgs/pkgs/by-name/lx/lxgw-wenkai-tc/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

30 lines
731 B
Nix

{ stdenvNoCC
, fetchurl
, lib
}:
stdenvNoCC.mkDerivation rec {
pname = "lxgw-wenkai-tc";
version = "1.330";
src = fetchurl {
url = "https://github.com/lxgw/LxgwWenKaiTC/releases/download/v${version}/${pname}-v${version}.tar.gz";
hash = "sha256-qpX5shH1HbGMa287u/R1rMFgQeAUC0wwKFVD+QSTyho=";
};
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 = "The Traditional Chinese Edition of LXGW WenKai.";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ lebensterben ];
};
}