mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
source-han-*: reduce closure size by 2x
The file name of the installed font was the path returned by fetchurl: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-SourceHanSans.ttc` This caused the derivation to reference the downloaded font file, storing the font twice unless you optimise the store (each file is ~150M).
This commit is contained in:
parent
1e3f09feaa
commit
9fb2c88df4
@ -19,7 +19,8 @@ let
|
||||
version = lib.removeSuffix "R" rev;
|
||||
|
||||
buildCommand = ''
|
||||
install -m444 -Dt $out/share/fonts/opentype/source-han-${family} ${ttc}
|
||||
mkdir -p $out/share/fonts/opentype/source-han-${family}
|
||||
ln -s ${ttc} $out/share/fonts/opentype/source-han-${family}/SourceHan${Family}.ttc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user