nodePackages.vega-lite: Fix vega module availability issue

This commit is contained in:
Tavi 2022-08-24 20:24:19 -04:00
parent efb22d3bcf
commit e64288661e

View File

@ -524,8 +524,8 @@ final: prev: {
postInstall = ''
cd node_modules
for dep in ${final.vega-cli}/lib/node_modules/vega-cli/node_modules/*; do
if [[ ! -d $dep ]]; then
ln -s "${final.vega-cli}/lib/node_modules/vega-cli/node_modules/$dep"
if [[ ! -d ''${dep##*/} ]]; then
ln -s "${final.vega-cli}/lib/node_modules/vega-cli/node_modules/''${dep##*/}"
fi
done
'';