diff --git a/nix/node-env.nix b/nix/node-env.nix index 9296bc2..29995f2 100644 --- a/nix/node-env.nix +++ b/nix/node-env.nix @@ -124,7 +124,7 @@ let packageDir=$(find . -type d -maxdepth 1 | tail -1) # Restore write permissions to make building work - find "$packageDir" -type d | xargs chmod u+x + find "$packageDir" -type d -print0 | xargs -0 chmod u+x chmod -R u+w "$packageDir" # Move the extracted tarball into the output folder @@ -132,13 +132,12 @@ let elif [ -d "${src}" ] then # Restore write permissions to make building work - find "$packageDir" -type d | xargs chmod u+x chmod -R u+w $strippedName # Move the extracted directory into the output folder mv $strippedName "$DIR/${packageName}" fi - + # Unset the stripped name to not confuse the next unpack step unset strippedName