2023-01-18 21:29:32 +01:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2022-02-19 15:02:35 +01:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-09-21 01:40:48 +02:00
|
|
|
pname = "lxgw-wenkai";
|
2023-05-06 08:06:24 +02:00
|
|
|
version = "1.300";
|
2022-09-21 01:40:48 +02:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz";
|
2023-05-06 08:06:24 +02:00
|
|
|
hash = "sha256-pPN8siF/8D78sEcXoF+vZ4BIeYWyXAuk4HBQJP+G3O8=";
|
2023-01-18 21:29:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-02-19 15:02:35 +01:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
2023-01-18 21:29:32 +01:00
|
|
|
mv *.ttf $out/share/fonts/truetype
|
2022-09-21 01:40:48 +02:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
runHook postInstall
|
2022-02-19 15:02:35 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|