diff options
author | sohalt <sohalt@sohalt.net> | 2024-01-22 12:44:31 +0100 |
---|---|---|
committer | sohalt <sohalt@sohalt.net> | 2024-01-22 12:44:31 +0100 |
commit | 2f6981d6e155129a5f9963e789e04a4b20b5ce58 (patch) | |
tree | c99a1c8e58b564dce93292c60335bb7e309bd231 /pkgs/build-support | |
parent | b06aeee2a088d84f1ff3e9d2f12bdc77bcacf069 (diff) |
build-graalvm-native-image: do not use NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION
Packages that require access to environment variables in the build should specify these using `-E` arguments in `nativeImageBuildArgs` or using a `native-image.properties` as described here: https://www.graalvm.org/22.1/reference-manual/native-image/BuildConfiguration/#embedding-a-configuration-file Specifying NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION=true breaks with packages that list their environment variables explicitly in `native-image.properties`.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/build-graalvm-native-image/default.nix | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/pkgs/build-support/build-graalvm-native-image/default.nix b/pkgs/build-support/build-graalvm-native-image/default.nix index 0612db2ad79bd..e5fe1abe1d11f 100644 --- a/pkgs/build-support/build-graalvm-native-image/default.nix +++ b/pkgs/build-support/build-graalvm-native-image/default.nix @@ -49,13 +49,6 @@ stdenv.mkDerivation ({ nativeImageBuildArgs = nativeImageBuildArgs ++ extraNativeImageBuildArgs ++ [ graalvmXmx ]; - # Workaround GraalVM issue where the builder does not have access to the - # environment variables since 21.0.0 - # https://github.com/oracle/graal/pull/6095 - # https://github.com/oracle/graal/pull/6095 - # https://github.com/oracle/graal/issues/7502 - env.NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATION = "true"; - buildPhase = args.buildPhase or '' runHook preBuild |