Change:
Hi all, Sorry if I'm missing something, I'm new at this so please say if you need any more info, thanks Steps to reproduce the behavior: async-profiler-2.9 Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
So after some research I've found that this is happening cause jdk21 is now default java and previously it was jd19. This async-profiler is used in jetbrains intellij package. I was not able to override version as I lack knowledge how to do it, perhaps someone will be about to help with it? Thank you
I was able to apply temporary fix I've created an overlay to use jdk19 instead of jdk21 that is used by default but I think in future async-profiler needs to be upgraded as there is a version 3 in git repo and repo link is now a bit different Just in case some one will need it. Here is an overlay And here is snippet from
Looks related to async-profiler/async-profiler. I'll look into maybe fixing it as a part of ZHF
This is actually fixed upstream in v3.0. Will package that instead

Discussion:
<ins> { lib, stdenv, fetchFromGitHub, jdk, makeWrapper, }: stdenv.mkDerivation rec { pname = "async-profiler"; version = "3.0"; src = fetchFromGitHub { owner = "jvm-profiling-tools"; repo = "async-profiler"; rev = "v${version}"; hash = "sha256-0CCJoRjRLq4LpiRD0ibzK8So9qSQymePCTYUI60Oy2k="; }; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ jdk ]; installPhase = let ext = stdenv.hostPlatform.extensions.sharedLibrary; in '' runHook preInstall install -D build/bin/asprof "$out/bin/async-profiler" install -D build/lib/libasyncProfiler${ext} "$out/lib/libasyncProfiler${ext}" runHook postInstall ''; fixupPhase = '' wrapProgram $out/bin/async-profiler --prefix PATH : ${lib.makeBinPath [ jdk ]} ''; meta = with lib; { description = "A low overhead sampling profiler for Java that does not suffer from Safepoint bias problem"; homepage = "https://github.com/jvm-profiling-tools/async-profiler"; license = licenses.asl20; maintainers = with maintainers; [ mschuwalow ]; platforms = platforms.all; mainProgram = "async-profiler"; }; } </ins>

<del> { lib, stdenv, fetchFromGitHub, jdk, makeWrapper }: stdenv.mkDerivation rec { pname = "async-profiler"; version = "2.9"; src = fetchFromGitHub { owner = "jvm-profiling-tools"; repo = "async-profiler"; rev = "v${version}"; sha256 = "sha256-ngLUg6Fq6Ay06klGa/y8lod8W6rYMqhMhXFn5OBCSpk="; }; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ jdk ]; installPhase = '' runHook preInstall install -D "$src/profiler.sh" "$out/bin/async-profiler" install -D build/jattach "$out/bin/jattach" install -D build/libasyncProfiler.so "$out/lib/libasyncProfiler.so" install -D -t "$out/share/java/" build/*.jar runHook postInstall ''; fixupPhase = '' substituteInPlace $out/bin/async-profiler  --replace 'JATTACH=$SCRIPT_DIR/build/jattach'  'JATTACH=${placeholder "out"}/bin/jattach'  --replace 'PROFILER=$SCRIPT_DIR/build/libasyncProfiler.so'  'PROFILER=${placeholder "out"}/lib/libasyncProfiler.so' wrapProgram $out/bin/async-profiler --prefix PATH : ${lib.makeBinPath [ jdk ]} ''; meta = with lib; { description = "A low overhead sampling profiler for Java that does not suffer from Safepoint bias problem"; homepage    = "https://github.com/jvm-profiling-tools/async-profiler"; license     = licenses.asl20; maintainers = with maintainers; [ mschuwalow ]; platforms   = platforms.all; }; } </del>

async = callPackage ../development/tools/async { }; <del> async-profiler = callPackage ../development/tools/async-profiler { }; </del> atheme = callPackage ../servers/irc/atheme { }; atinout = callPackage ../tools/networking/atinout { };