zipline: refactor environment variables (#377101)

This commit is contained in:
Sandro
2025-02-02 22:12:10 +01:00
committed by GitHub
+4 -7
View File
@@ -87,18 +87,15 @@ stdenv.mkDerivation (finalAttrs: {
openssl
];
YARN_ENABLE_TELEMETRY = "0";
ZIPLINE_DOCKER_BUILD = "true";
env = {
YARN_ENABLE_TELEMETRY = "0";
ZIPLINE_DOCKER_BUILD = "true";
} // environment;
configurePhase = ''
export HOME="$NIX_BUILD_TOP"
yarn config set enableGlobalCache false
yarn config set cacheFolder $yarnOfflineCache
${lib.concatStringsSep "\n" (
lib.mapAttrsToList (name: value: "export ${name}=${lib.escapeShellArg value}") environment
)}
'';
buildPhase = ''