zipline: refactor environment variables
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user