mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +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/'
29 lines
716 B
Nix
29 lines
716 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "lxgw-wenkai";
|
|
version = "1.330";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/${pname}-v${version}.tar.gz";
|
|
hash = "sha256-CscUUcyLsk/S70tT2uGRqLiF8fa4KxC9pVrOziWJ/fI=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
mv *.ttf $out/share/fonts/truetype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://lxgw.github.io/";
|
|
description = "Open-source Chinese font derived from Fontworks' Klee One";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ elliot ];
|
|
};
|
|
}
|