aboutsummaryrefslogtreecommitdiff
path: root/virtual/modules/websites/commons/composer-env.nix
diff options
context:
space:
mode:
Diffstat (limited to 'virtual/modules/websites/commons/composer-env.nix')
-rw-r--r--virtual/modules/websites/commons/composer-env.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtual/modules/websites/commons/composer-env.nix b/virtual/modules/websites/commons/composer-env.nix
index 051ac6e..416a61c 100644
--- a/virtual/modules/websites/commons/composer-env.nix
+++ b/virtual/modules/websites/commons/composer-env.nix
@@ -63,6 +63,7 @@ let
63 , noDev ? false 63 , noDev ? false
64 , unpackPhase ? "true" 64 , unpackPhase ? "true"
65 , buildPhase ? "true" 65 , buildPhase ? "true"
66 , doRemoveVendor ? true
66 , ...}@args: 67 , ...}@args:
67 68
68 let 69 let
@@ -197,9 +198,10 @@ let
197 198
198 export HOME=$TMPDIR 199 export HOME=$TMPDIR
199 200
201 ${if doRemoveVendor then ''
200 # Remove the provided vendor folder if it exists 202 # Remove the provided vendor folder if it exists
201 rm -Rf vendor 203 rm -Rf vendor
202 204 '' else ""}
203 # If there is no composer.lock file, compose a dummy file. 205 # If there is no composer.lock file, compose a dummy file.
204 # Otherwise, composer attempts to download the package.json file from 206 # Otherwise, composer attempts to download the package.json file from
205 # the registry which we do not want. 207 # the registry which we do not want.