From 1bea1a30b5d372289595292c861cea0317a646b5 Mon Sep 17 00:00:00 2001 From: Mike Sperber Date: Tue, 14 Jan 2020 13:15:17 +0100 Subject: [PATCH] vagrant: Unbreak replacing symlinks on macOS On a local installation on macOS, "cp -a" creates a write-protected directory, which can't be renamed. Do a "chmod +w" to unbreak. Fixes #77671. --- pkgs/development/tools/vagrant/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/vagrant/default.nix b/pkgs/development/tools/vagrant/default.nix index 4ef723c9a1fa..ea3382f3e706 100644 --- a/pkgs/development/tools/vagrant/default.nix +++ b/pkgs/development/tools/vagrant/default.nix @@ -33,6 +33,8 @@ let for gem in "$out"/lib/ruby/gems/*/gems/*; do cp -a "$gem/" "$gem.new" rm "$gem" + # needed on macOS, otherwise the mv yields permission denied + chmod +w "$gem.new" mv "$gem.new" "$gem" done '';