feat: ttf-wps-fonts
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
wpsoffice-cn
|
||||
wps-office-fonts
|
||||
ttf-wps-fonts
|
||||
evince
|
||||
|
||||
anki
|
||||
|
||||
@@ -7,6 +7,7 @@ let
|
||||
"fcitx5-lightly"
|
||||
"fluent-fcitx5"
|
||||
"wps-office-fonts"
|
||||
"ttf-wps-fonts"
|
||||
"translate-shell"
|
||||
];
|
||||
in
|
||||
|
||||
34
pkgs/ttf-wps-fonts.nix
Normal file
34
pkgs/ttf-wps-fonts.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "ttf-wps-fonts";
|
||||
version = "unstable-2024-08-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dv-anomaly";
|
||||
repo = "ttf-wps-fonts";
|
||||
rev = "8c980c24289cb08e03f72915970ce1bd6767e45a";
|
||||
hash = "sha256-x+grMnpEGLkrGVud0XXE8Wh6KT5DoqE6OHR+TS6TagI=";
|
||||
};
|
||||
|
||||
phases = [
|
||||
"unpackPhase"
|
||||
"installPhase"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fonts/ttf-wps-fonts
|
||||
cp *.ttf *.TTF $out/share/fonts/ttf-wps-fonts
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Symbol fonts required by wps-office. ";
|
||||
homepage = "https://github.com/dv-anomaly/ttf-wps-fonts/tree/8c980c24289cb08e03f72915970ce1bd6767e45a";
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
}:
|
||||
@@ -29,6 +28,5 @@ stdenvNoCC.mkDerivation rec {
|
||||
meta = {
|
||||
description = "The wps-office-fonts package contains Founder Chinese fonts";
|
||||
homepage = "https://github.com/Universebenzene/wps-office-fonts";
|
||||
license = lib.licenses.unlicense;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user