From 2a5a6cfbb1226371f10396dd9d2c1cd8d61fc68f Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Thu, 21 Apr 2022 09:28:30 +0100 Subject: [PATCH] graalvmXX-ce: fix in darwin by ensuring `$lib/lib` always exist --- .../compilers/graalvm/community-edition/mkGraal.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix b/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix index eac94b7ec1ea..02fd986731b1 100644 --- a/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix +++ b/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix @@ -169,6 +169,8 @@ let outputs = [ "out" "lib" ]; installPhase = '' + # ensure that $lib/lib exists to avoid breaking builds + mkdir -p "$lib/lib" # jni.h expects jni_md.h to be in the header search path. ln -s $out/include/linux/*_md.h $out/include/ @@ -194,7 +196,6 @@ let # `native-image -H:CLibraryPath=''${lib.getLib graalvmXX-ce}/lib ...` and reduce # closure size by not depending on GraalVM $out (that is much bigger) # we always use glibc here, since musl is only supported for static compilation - mkdir -p "$lib/lib" for f in "${glibc}/lib/"*; do ln -s "$f" "$lib/lib/$(basename $f)" done