rearrange font module
This commit is contained in:
parent
c8e9d66f51
commit
a8572dc3a3
6 changed files with 4 additions and 4 deletions
BIN
modules/font/fonts/fangsong.ttf
Normal file
BIN
modules/font/fonts/fangsong.ttf
Normal file
Binary file not shown.
BIN
modules/font/fonts/simsun.ttc
Normal file
BIN
modules/font/fonts/simsun.ttc
Normal file
Binary file not shown.
BIN
modules/font/fonts/xiaobiao_song.ttf
Normal file
BIN
modules/font/fonts/xiaobiao_song.ttf
Normal file
Binary file not shown.
|
|
@ -4,11 +4,11 @@ let
|
|||
# Custom fonts from local files
|
||||
customFonts = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "custom-fonts";
|
||||
src = ../config/fonts;
|
||||
src = ./fonts;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts
|
||||
find $src -type f \( -name "*.ttf" -o -name "*.otf" -o -name "*.ttc" -o -name "*.woff" -o -name "*.woff2" \) -exec cp {} $out/share/fonts/ \;
|
||||
find $src -type f \( -iname "*.ttf" -o -iname "*.otf" -o -iname "*.ttc" -o -iname "*.woff" -o -iname "*.woff2" \) -exec cp {} $out/share/fonts/ \;
|
||||
'';
|
||||
};
|
||||
in
|
||||
Loading…
Add table
Add a link
Reference in a new issue