mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
33 lines
739 B
Nix
33 lines
739 B
Nix
{ lib
|
|
, fetchurl
|
|
, stdenvNoCC
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lxgw-neoxihei";
|
|
version = "1.123.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwNeoXiHei/releases/download/v${version}/LXGWNeoXiHei.ttf";
|
|
hash = "sha256-soVFPeoU4Rovk4xpXd90CjzQ1y1rx1OT/4eKCZNTd4Q=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 $src $out/share/fonts/truetype/LXGWNeoXiHei.ttf
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simplified Chinese sans-serif font derived from IPAex Gothic";
|
|
homepage = "https://github.com/lxgw/LxgwNeoXiHei";
|
|
license = licenses.ipa;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|