From 3b0afe2ee4ea98818c214b82f246dfe8547182f2 Mon Sep 17 00:00:00 2001 From: linsui Date: Wed, 29 Sep 2021 00:46:39 +0800 Subject: [PATCH] source-han-*: install instead of ln libreoffice doesn't work with fonts symlink --- pkgs/data/fonts/source-han/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/data/fonts/source-han/default.nix b/pkgs/data/fonts/source-han/default.nix index 28ec08f63b6d..7b6bef0198da 100644 --- a/pkgs/data/fonts/source-han/default.nix +++ b/pkgs/data/fonts/source-han/default.nix @@ -19,8 +19,7 @@ let version = lib.removeSuffix "R" rev; buildCommand = '' - mkdir -p $out/share/fonts/opentype/source-han-${family} - ln -s ${ttc} $out/share/fonts/opentype/source-han-${family}/SourceHan${Family}.ttc + install -m444 -Dt $out/share/fonts/opentype/source-han-${family} ${ttc} ''; meta = {