2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-10-21 18:38:19 +00:00
|
|
|
pname = "lxgw-wenkai";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.250";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
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
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
mv *.ttf $out/share/fonts/truetype
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
2022-03-05 16:20:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|