build-support/php: move environment variables under `env` attribute

+17 -11
+5 -3
pkgs/build-support/php/build-composer-project.nix
··· 89 composerStrictValidation = previousAttrs.composerStrictValidation or true; 90 }; 91 92 - COMPOSER_CACHE_DIR = "/dev/null"; 93 - COMPOSER_DISABLE_NETWORK = "1"; 94 - COMPOSER_MIRROR_PATH_REPOS = "1"; 95 96 meta = previousAttrs.meta or { } // { 97 platforms = lib.platforms.all;
··· 89 composerStrictValidation = previousAttrs.composerStrictValidation or true; 90 }; 91 92 + env = { 93 + COMPOSER_CACHE_DIR = "/dev/null"; 94 + COMPOSER_DISABLE_NETWORK = "1"; 95 + COMPOSER_MIRROR_PATH_REPOS = "1"; 96 + }; 97 98 meta = previousAttrs.meta or { } // { 99 platforms = lib.platforms.all;
+6 -4
pkgs/build-support/php/build-composer-repository.nix
··· 106 runHook postInstallCheck 107 ''; 108 109 - COMPOSER_CACHE_DIR = "/dev/null"; 110 - COMPOSER_MIRROR_PATH_REPOS = "1"; 111 - COMPOSER_HTACCESS_PROTECT = "0"; 112 - COMPOSER_DISABLE_NETWORK = "0"; 113 114 outputHashMode = "recursive"; 115 outputHashAlgo =
··· 106 runHook postInstallCheck 107 ''; 108 109 + env = { 110 + COMPOSER_CACHE_DIR = "/dev/null"; 111 + COMPOSER_MIRROR_PATH_REPOS = "1"; 112 + COMPOSER_HTACCESS_PROTECT = "0"; 113 + COMPOSER_DISABLE_NETWORK = "0"; 114 + }; 115 116 outputHashMode = "recursive"; 117 outputHashAlgo =
+6 -4
pkgs/build-support/php/pkgs/composer-local-repo-plugin.nix
··· 43 hash = "sha256-edbn07r/Uc1g0qOuVBZBs6N1bMN5kIfA1b4FCufdw5M="; 44 }; 45 46 - COMPOSER_CACHE_DIR = "/dev/null"; 47 - COMPOSER_MIRROR_PATH_REPOS = "1"; 48 - COMPOSER_HTACCESS_PROTECT = "0"; 49 - COMPOSER_DISABLE_NETWORK = "1"; 50 51 nativeBuildInputs = [ makeBinaryWrapper ]; 52
··· 43 hash = "sha256-edbn07r/Uc1g0qOuVBZBs6N1bMN5kIfA1b4FCufdw5M="; 44 }; 45 46 + env = { 47 + COMPOSER_CACHE_DIR = "/dev/null"; 48 + COMPOSER_MIRROR_PATH_REPOS = "1"; 49 + COMPOSER_HTACCESS_PROTECT = "0"; 50 + COMPOSER_DISABLE_NETWORK = "1"; 51 + }; 52 53 nativeBuildInputs = [ makeBinaryWrapper ]; 54