aboutsummaryrefslogtreecommitdiff
path: root/virtual/modules/websites/commons/composer-env.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-24 09:56:31 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-24 09:56:31 +0100
commita3d281ea34a6e3c66789455c1c1edf223030a589 (patch)
tree5fb1a32e3a3395333d316473bc42fc060bd88814 /virtual/modules/websites/commons/composer-env.nix
parentf27f4c9de97789e1bff31e2939395a8c6c50279d (diff)
downloadNix-a3d281ea34a6e3c66789455c1c1edf223030a589.tar.gz
Nix-a3d281ea34a6e3c66789455c1c1edf223030a589.tar.zst
Nix-a3d281ea34a6e3c66789455c1c1edf223030a589.zip
Purify wallabag's website
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.