diff options
Diffstat (limited to 'virtual/modules/websites/commons/composer-env.nix')
-rw-r--r-- | virtual/modules/websites/commons/composer-env.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/virtual/modules/websites/commons/composer-env.nix b/virtual/modules/websites/commons/composer-env.nix index 123d5fa..abc8f01 100644 --- a/virtual/modules/websites/commons/composer-env.nix +++ b/virtual/modules/websites/commons/composer-env.nix | |||
@@ -153,7 +153,9 @@ let | |||
153 | ''ln -s "${dependency.src}" "$vendorDir/$(basename "${dependencyName}")"'' | 153 | ''ln -s "${dependency.src}" "$vendorDir/$(basename "${dependencyName}")"'' |
154 | else | 154 | else |
155 | ''cp -av "${dependency.src}" "$vendorDir/$(basename "${dependencyName}")"'' | 155 | ''cp -av "${dependency.src}" "$vendorDir/$(basename "${dependencyName}")"'' |
156 | } | 156 | }${if dependency.needsModifyRights or false then "\n" + '' |
157 | chmod -R u+rwx "$vendorDir/$(basename "${dependencyName}")" | ||
158 | '' else ""} | ||
157 | '' else '' | 159 | '' else '' |
158 | namespaceDir="${dependencyName}/$(dirname "${dependency.targetDir}")" | 160 | namespaceDir="${dependencyName}/$(dirname "${dependency.targetDir}")" |
159 | mkdir -p "$namespaceDir" | 161 | mkdir -p "$namespaceDir" |
@@ -161,7 +163,9 @@ let | |||
161 | ''ln -s "${dependency.src}" "$namespaceDir/$(basename "${dependency.targetDir}")"'' | 163 | ''ln -s "${dependency.src}" "$namespaceDir/$(basename "${dependency.targetDir}")"'' |
162 | else | 164 | else |
163 | ''cp -av "${dependency.src}" "$namespaceDir/$(basename "${dependency.targetDir}")"'' | 165 | ''cp -av "${dependency.src}" "$namespaceDir/$(basename "${dependency.targetDir}")"'' |
164 | } | 166 | }${if dependency.needsModifyRights or false then "\n" + '' |
167 | chmod -R u+rwx "$namespaceDir/$(basename "${dependency.targetDir}")" | ||
168 | '' else ""} | ||
165 | ''} | 169 | ''} |
166 | '') (builtins.attrNames dependencies); | 170 | '') (builtins.attrNames dependencies); |
167 | 171 | ||