Unverified Commit edc8a07b authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

zipline: refactor environment variables (#377101)

parents cfd4b92f 8cf9f625
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -87,18 +87,15 @@ stdenv.mkDerivation (finalAttrs: {
    openssl
  ];

  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 = ''