anchor.diff:            mv "$packageDir" "$DIR/${packageName}"
         elif [ -d "${src}" ]
         then
  +          strippedName="$(stripHash ${src})"
  +
             # Restore write permissions to make building work
             chmod -R u+w $strippedName
             
  
positive.code:       if [ -f "${src}" ]
        then
            # Figure out what directory has been unpacked
            packageDir=$(find . -type d -maxdepth 1 | tail -1)
            
            # Restore write permissions to make building work
            find "$packageDir" -type d -print0 | xargs -0 chmod u+x
  
negative.code:           mv $strippedName "$DIR/${packageName}"
        fi
  
        # Some version specifiers (latest, unstable, URLs, file paths) force NPM to make remote connections or consult paths outside the Nix store.
        # The following JavaScript replaces these by * to prevent that
        cd "$DIR/${packageName}"
  