From e64288661e4f68d8d6d80478850531e081d8ed2a Mon Sep 17 00:00:00 2001 From: Tavi Date: Wed, 24 Aug 2022 20:24:19 -0400 Subject: [PATCH] nodePackages.vega-lite: Fix vega module availability issue --- pkgs/development/node-packages/overrides.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/node-packages/overrides.nix b/pkgs/development/node-packages/overrides.nix index 5ce8bfcfb81d..88423205e20d 100644 --- a/pkgs/development/node-packages/overrides.nix +++ b/pkgs/development/node-packages/overrides.nix @@ -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 '';