forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlre-java.nix
More file actions
34 lines (33 loc) · 887 Bytes
/
Copy pathlre-java.nix
File metadata and controls
34 lines (33 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
buildImage,
coreutils,
findutils,
gnutar,
jdk17_headless,
lib,
...
}: let
# This config is shared between toolchain autogen images and the final
# toolchain image.
Env = [
# Add all tooling here so that the generated toolchains use `/nix/store/*`
# paths instead of `/bin` or `/usr/bin`. This way we're guaranteed to use
# binary identical toolchains during local and remote execution.
("PATH="
+ (lib.strings.concatStringsSep ":" [
"${coreutils}/bin"
"${findutils}/bin"
"${gnutar}/bin"
]))
"JAVA_HOME=${jdk17_headless}/lib/openjdk"
];
in
buildImage {
name = "lre-java";
maxLayers = 100;
config = {inherit Env;};
# Attached for passthrough to rbe-configs-gen.
meta = {inherit Env;};
# Don't set a tag here so that the image is tagged by its derivation hash.
# tag = null;
}