a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
28 lines
719 B
Nix
28 lines
719 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lxgw-wenkai";
|
|
version = "1.250";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz";
|
|
hash = "sha256-Nkd0xXYCnR0NZAk/JCxy+zOlxIxD52Px4F9o2L9mgRE=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
mv *.ttf $out/share/fonts/truetype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://lxgw.github.io/";
|
|
description = "An open-source Chinese font derived from Fontworks' Klee One";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ elliot ];
|
|
};
|
|
}
|