build-support/php: fix typo

+15 -15
+4 -4
pkgs/build-support/php/builders/v1/hooks/composer-install-hook.sh
··· 24 fi 25 26 if [[ ! -f "composer.lock" ]]; then 27 - setComposeRootVersion 28 29 composer \ 30 --no-install \ ··· 79 composerInstallBuildHook() { 80 echo "Executing composerInstallBuildHook" 81 82 - setComposeRootVersion 83 84 # Since this file cannot be generated in the composer-repository-hook.sh 85 # because the file contains hardcoded nix store paths, we generate it here. ··· 99 composerInstallInstallHook() { 100 echo "Executing composerInstallInstallHook" 101 102 - setComposeRootVersion 103 - setComposeEnvVariables 104 105 # Finally, run `composer install` to install the dependencies and generate 106 # the autoloader.
··· 24 fi 25 26 if [[ ! -f "composer.lock" ]]; then 27 + setComposerRootVersion 28 29 composer \ 30 --no-install \ ··· 79 composerInstallBuildHook() { 80 echo "Executing composerInstallBuildHook" 81 82 + setComposerRootVersion 83 84 # Since this file cannot be generated in the composer-repository-hook.sh 85 # because the file contains hardcoded nix store paths, we generate it here. ··· 99 composerInstallInstallHook() { 100 echo "Executing composerInstallInstallHook" 101 102 + setComposerRootVersion 103 + setComposerEnvVariables 104 105 # Finally, run `composer install` to install the dependencies and generate 106 # the autoloader.
+2 -2
pkgs/build-support/php/builders/v1/hooks/composer-repository-hook.sh
··· 20 fi 21 22 if [[ ! -f "composer.lock" ]]; then 23 - setComposeRootVersion 24 25 composer \ 26 --no-install \ ··· 58 59 mkdir -p repository 60 61 - setComposeRootVersion 62 63 # Build the local composer repository 64 # The command 'build-local-repo' is provided by the Composer plugin
··· 20 fi 21 22 if [[ ! -f "composer.lock" ]]; then 23 + setComposerRootVersion 24 25 composer \ 26 --no-install \ ··· 58 59 mkdir -p repository 60 61 + setComposerRootVersion 62 63 # Build the local composer repository 64 # The command 'build-local-repo' is provided by the Composer plugin
+1 -1
pkgs/build-support/php/builders/v1/hooks/composer-with-plugin-vendor-hook.sh
··· 28 cp -ar $src $out/src 29 30 if [[ ! -f "$out/composer.lock" ]]; then 31 - setComposeRootVersion 32 33 composer \ 34 global \
··· 28 cp -ar $src $out/src 29 30 if [[ ! -f "$out/composer.lock" ]]; then 31 + setComposerRootVersion 32 33 composer \ 34 global \
+3 -3
pkgs/build-support/php/builders/v1/hooks/php-script-utils.bash
··· 2 declare composerStrictValidation 3 declare composerGlobal 4 5 - setComposeRootVersion() { 6 set +e # Disable exit on error 7 8 if [[ -v version ]]; then ··· 13 set -e 14 } 15 16 - setComposeEnvVariables() { 17 echo -e "\e[32mSetting some required environment variables for Composer...\e[0m" 18 export COMPOSER_MIRROR_PATH_REPOS=1 19 export COMPOSER_CACHE_DIR=/dev/null ··· 21 } 22 23 checkComposerValidate() { 24 - setComposeRootVersion 25 26 if [ "1" == "${composerGlobal-}" ]; then 27 global="global";
··· 2 declare composerStrictValidation 3 declare composerGlobal 4 5 + setComposerRootVersion() { 6 set +e # Disable exit on error 7 8 if [[ -v version ]]; then ··· 13 set -e 14 } 15 16 + setComposerEnvVariables() { 17 echo -e "\e[32mSetting some required environment variables for Composer...\e[0m" 18 export COMPOSER_MIRROR_PATH_REPOS=1 19 export COMPOSER_CACHE_DIR=/dev/null ··· 21 } 22 23 checkComposerValidate() { 24 + setComposerRootVersion 25 26 if [ "1" == "${composerGlobal-}" ]; then 27 global="global";
+1 -1
pkgs/build-support/php/builders/v2/hooks/composer-install-hook.sh
··· 14 composerInstallConfigureHook() { 15 echo "Executing composerInstallConfigureHook" 16 17 - setComposeRootVersion 18 19 if [[ ! -e "${composerVendor}" ]]; then 20 echo "No local composer vendor found."
··· 14 composerInstallConfigureHook() { 15 echo "Executing composerInstallConfigureHook" 16 17 + setComposerRootVersion 18 19 if [[ ! -e "${composerVendor}" ]]; then 20 echo "No local composer vendor found."
+2 -2
pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh
··· 15 composerVendorConfigureHook() { 16 echo "Executing composerVendorConfigureHook" 17 18 - setComposeRootVersion 19 20 if [[ -e "$composerLock" ]]; then 21 echo -e "\e[32mUsing user provided \`composer.lock\` file from \`$composerLock\`\e[0m" ··· 59 composerVendorBuildHook() { 60 echo "Executing composerVendorBuildHook" 61 62 - setComposeEnvVariables 63 64 composer \ 65 `# The acpu-autoloader is not reproducible and has to be disabled.` \
··· 15 composerVendorConfigureHook() { 16 echo "Executing composerVendorConfigureHook" 17 18 + setComposerRootVersion 19 20 if [[ -e "$composerLock" ]]; then 21 echo -e "\e[32mUsing user provided \`composer.lock\` file from \`$composerLock\`\e[0m" ··· 59 composerVendorBuildHook() { 60 echo "Executing composerVendorBuildHook" 61 62 + setComposerEnvVariables 63 64 composer \ 65 `# The acpu-autoloader is not reproducible and has to be disabled.` \
+2 -2
pkgs/build-support/php/builders/v2/hooks/php-script-utils.bash
··· 2 declare composerStrictValidation 3 declare composerGlobal 4 5 - setComposeRootVersion() { 6 set +e # Disable exit on error 7 8 if [[ -v version ]]; then ··· 13 set -e 14 } 15 16 - setComposeEnvVariables() { 17 echo -e "\e[32mSetting some required environment variables for Composer...\e[0m" 18 export COMPOSER_MIRROR_PATH_REPOS=1 19 export COMPOSER_CACHE_DIR=/dev/null
··· 2 declare composerStrictValidation 3 declare composerGlobal 4 5 + setComposerRootVersion() { 6 set +e # Disable exit on error 7 8 if [[ -v version ]]; then ··· 13 set -e 14 } 15 16 + setComposerEnvVariables() { 17 echo -e "\e[32mSetting some required environment variables for Composer...\e[0m" 18 export COMPOSER_MIRROR_PATH_REPOS=1 19 export COMPOSER_CACHE_DIR=/dev/null