Unverified Commit 839498d5 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

php/build-support: fix usage of environment variables

parent 207d5b49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -70,6 +70,10 @@ let
        composerNoScripts = previousAttrs.composerNoScripts or true;
      };

      COMPOSER_CACHE_DIR="/dev/null";
      COMPOSER_DISABLE_NETWORK="1";
      COMPOSER_MIRROR_PATH_REPOS="1";

      meta = previousAttrs.meta or { } // {
        platforms = lib.platforms.all;
      };
+0 −4
Original line number Diff line number Diff line
@@ -88,7 +88,6 @@ composerInstallBuildHook() {

    # Since the composer.json file has been modified in the previous step, the
    # composer.lock file needs to be updated.
    COMPOSER_DISABLE_NETWORK=1 \
    COMPOSER_ROOT_VERSION="${version}" \
    composer \
      --lock \
@@ -118,10 +117,7 @@ composerInstallInstallHook() {
    # the autoloader.
    # The COMPOSER_ROOT_VERSION environment variable is needed only for
    # vimeo/psalm.
    COMPOSER_CACHE_DIR=/dev/null \
    COMPOSER_DISABLE_NETWORK=1 \
    COMPOSER_ROOT_VERSION="${version}" \
    COMPOSER_MIRROR_PATH_REPOS="1" \
    composer \
      --no-ansi \
      --no-interaction \
+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ composerRepositoryBuildHook() {
    # Build the local composer repository
    # The command 'build-local-repo' is provided by the Composer plugin
    # nix-community/composer-local-repo-plugin.
    COMPOSER_CACHE_DIR=/dev/null \
    composer-local-repo-plugin --no-ansi build-local-repo ${composerNoDev:+--no-dev} -r repository

    echo "Finished composerRepositoryBuildHook"