nixpkgs/pkgs/data/fonts/lxgw-wenkai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
719 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl }:
2022-02-19 15:02:35 +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
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=";
};
installPhase = ''
runHook preInstall
2022-02-19 15:02:35 +01:00
mkdir -p $out/share/fonts/truetype
mv *.ttf $out/share/fonts/truetype
2022-09-21 01:40:48 +02: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 ];
};
}