]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - virtual/modules/websites/commons/composer-env.nix
Purify wallabag's website
[perso/Immae/Config/Nix.git] / virtual / modules / websites / commons / composer-env.nix
index 051ac6e9e2d7d33db043831d31aed71cd6b142d7..416a61cab39567d15e433680325742a7409cd4b2 100644 (file)
@@ -63,6 +63,7 @@ let
     , noDev ? false
     , unpackPhase ? "true"
     , buildPhase ? "true"
+    , doRemoveVendor ? true
     , ...}@args:
 
     let
@@ -197,9 +198,10 @@ let
 
         export HOME=$TMPDIR
 
+        ${if doRemoveVendor then ''
         # Remove the provided vendor folder if it exists
         rm -Rf vendor
-
+        '' else ""}
         # If there is no composer.lock file, compose a dummy file.
         # Otherwise, composer attempts to download the package.json file from
         # the registry which we do not want.