zipline: refactor environment variables

This commit is contained in:
Defelo
2025-01-30 22:06:42 +01:00
parent b1b57060b4
commit 8cf9f6255c
+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 = ''