diff --git a/pkgs/nim-packages/generic.nix b/pkgs/nim-packages/generic.nix index 14f8c9b..bdd7105 100644 --- a/pkgs/nim-packages/generic.nix +++ b/pkgs/nim-packages/generic.nix @@ -19,9 +19,7 @@ let copyNimDeps = '' mkdir -p $NIMBLE_DIR/pkgs - if [ ! -f $NIMBLE_DIR/packages_official.json ]; then - echo "[]" > $NIMBLE_DIR/packages_official.json - fi + echo "[]" > $NIMBLE_DIR/packages_official.json '' + toString (map (dep: '' if [ -d ${dep}/.nimble ]; then cp -R ${dep}/.nimble/pkgs $NIMBLE_DIR