anchor.diff:      x86_64-darwin = "darwin-amd64";
     }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
   
  -  runtimeDependencies = [ cups ]
  -    ++ lib.optionals gtkSupport [ cairo glib gtk3 ];
  -
  -  runtimeLibraryPath = lib.makeLibraryPath runtimeDependencies;
  +  runtimeLibraryPath = lib.makeLibraryPath
  +    ([ cups ] ++ lib.optionals gtkSupport [ cairo glib gtk3 ]);
  +
  +  runtimeDependencies = lib.makeBinPath ([
  +    binutils
  +    stdenv.cc
  +  ] ++ lib.optionals useMusl [
  +    (lib.getDev musl)
  +    # GraalVM 21.3.0+ expects musl-gcc as <system>-musl-gcc
  +    (writeShellScriptBin "${stdenv.system}-musl-gcc" ''${lib.getDev musl}/bin/musl-gcc "$@"'')
  +  ]);
   
     javaVersionPlatform = "${javaVersion}-${platform}";
   
  
positive.code:       xorg.libXtst
        zlib
      ];
  
      # Workaround for libssl.so.10 wanted by TruffleRuby
      # Resulting TruffleRuby cannot use `openssl` library.
      autoPatchelfIgnoreMissingDeps = true;
  
      nativeBuildInputs = [ unzip perl autoPatchelfHook makeWrapper ];
  
  
negative.code:       for bin in $( find "$out" -executable -type f -not -path '*/languages/ruby/lib/gems/*' -not -name jspawnhelper ); do
          if patchelf --print-interpreter "$bin" &> /dev/null || head -n 1 "$bin" | grep '^#!' -q; then
            wrapProgram "$bin" \
              --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" \
              --prefix PATH : "${runtimeDependencies}"
          fi
        done
  
        find "$out" -name libfontmanager.so -exec \
          patchelf --add-needed libfontconfig.so {} \;
  
        # Workaround for libssl.so.10/libcrypto.so.10 wanted by TruffleRuby
        patchelf $out/languages/ruby/lib/mri/openssl.so \
          --replace-needed libssl.so.10 libssl.so \
          --replace-needed libcrypto.so.10 libcrypto.so
      '';
  
      # $out/bin/native-image needs zlib to build native executables.
  