pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / lx / lxgw-neoxihei / package.nix
blob72480f5c108aa0f8796bf407bb9080a4b7e4050d
1 { lib
2 , fetchurl
3 , stdenvNoCC
4 }:
6 stdenvNoCC.mkDerivation rec {
7   pname = "lxgw-neoxihei";
8   version = "1.207";
10   src = fetchurl {
11     url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
12     hash = "sha256-voFR2qkomj1CRv4OWtrYJmpVxoUl6db/HnkaobCmBzY=";
13   };
15   dontUnpack = true;
17   installPhase = ''
18     runHook preInstall
20     install -Dm644 $src $out/share/fonts/truetype/LXGWNeoXiHei.ttf
22     runHook postInstall
23   '';
25   meta = with lib; {
26     description = "Simplified Chinese sans-serif font derived from IPAex Gothic";
27     homepage = "https://github.com/lxgw/LxgwNeoXiHei";
28     license = licenses.ipa;
29     platforms = platforms.all;
30     maintainers = with maintainers; [ zendo ];
31   };