mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
32 lines
782 B
Nix
32 lines
782 B
Nix
{
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
lib,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "lxgw-wenkai-screen";
|
|
version = "1.501";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lxgw/LxgwWenKai-Screen/releases/download/v${finalAttrs.version}/LXGWWenKaiScreen.ttf";
|
|
hash = "sha256-em3uh53neN8v1ueiw1rWVtC0bteD7IG3X1g9tkjBRJA=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm644 "$src" "$out/share/fonts/truetype/LXGWWenKaiScreen.ttf"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "LXGW WenKai font optimized for screen reading";
|
|
homepage = "https://github.com/lxgw/LxgwWenKai-Screen";
|
|
license = lib.licenses.ofl;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ lebensterben ];
|
|
};
|
|
})
|