nixpkgs/pkgs/by-name/lx/lxgw-wenkai-tc/package.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

31 lines
726 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 = "Traditional Chinese Edition of LXGW WenKai";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ lebensterben ];
};
}