From 0957130b8dfb8b1953540a47d74b4d70853b1db2 Mon Sep 17 00:00:00 2001 From: xieby1 Date: Sun, 18 Feb 2024 14:03:59 +0800 Subject: [PATCH] sys: gui: disable font LxgwWenKai --- sys/gui.nix | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/sys/gui.nix b/sys/gui.nix index a14cce06..045724da 100644 --- a/sys/gui.nix +++ b/sys/gui.nix @@ -86,25 +86,25 @@ ]; }) # refs to pkgs/data/fonts/roboto-mono/default.nix - (stdenv.mkDerivation { - name = "my_fonts"; - srcs = [(fetchurl { - url = "https://github.com/lxgw/LxgwWenKai/releases/download/v1.311/LXGWWenKai-Bold.ttf"; - sha256 = "16111vvjii2hmnigjb44rjj39k8hjawbvwrb3f2f1ph4hv5wnvkn"; - }) (fetchurl { - url = "https://github.com/lxgw/LxgwWenKai/releases/download/v1.311/LXGWWenKai-Regular.ttf"; - sha256 = "103mvbpg51jvda265f29sjq17jj76dgwz6f1qdmv6d99bb8b6x7w"; - })]; - sourceRoot = "./"; - unpackCmd = '' - ttfName=$(basename $(stripHash $curSrc)) - cp $curSrc ./$ttfName - ''; - installPhase = '' - mkdir -p $out/share/fonts/truetype - cp -a *.ttf $out/share/fonts/truetype/ - ''; - }) + # (stdenv.mkDerivation { + # name = "my_fonts"; + # srcs = [(fetchurl { + # url = "https://github.com/lxgw/LxgwWenKai/releases/download/v1.311/LXGWWenKai-Bold.ttf"; + # sha256 = "16111vvjii2hmnigjb44rjj39k8hjawbvwrb3f2f1ph4hv5wnvkn"; + # }) (fetchurl { + # url = "https://github.com/lxgw/LxgwWenKai/releases/download/v1.311/LXGWWenKai-Regular.ttf"; + # sha256 = "103mvbpg51jvda265f29sjq17jj76dgwz6f1qdmv6d99bb8b6x7w"; + # })]; + # sourceRoot = "./"; + # unpackCmd = '' + # ttfName=$(basename $(stripHash $curSrc)) + # cp $curSrc ./$ttfName + # ''; + # installPhase = '' + # mkdir -p $out/share/fonts/truetype + # cp -a *.ttf $out/share/fonts/truetype/ + # ''; + # }) ]); # enable fontDir /run/current-system/sw/share/X11/fonts fonts.fontDir.enable = true;