8 stdenv.mkDerivation rec {
9 pname = "async-profiler";
12 src = fetchFromGitHub {
13 owner = "jvm-profiling-tools";
14 repo = "async-profiler";
16 hash = "sha256-0CCJoRjRLq4LpiRD0ibzK8So9qSQymePCTYUI60Oy2k=";
19 nativeBuildInputs = [ makeWrapper ];
21 buildInputs = [ jdk ];
25 ext = stdenv.hostPlatform.extensions.sharedLibrary;
29 install -D build/bin/asprof "$out/bin/async-profiler"
30 install -D build/lib/libasyncProfiler${ext} "$out/lib/libasyncProfiler${ext}"
35 wrapProgram $out/bin/async-profiler --prefix PATH : ${lib.makeBinPath [ jdk ]}
39 description = "Low overhead sampling profiler for Java that does not suffer from Safepoint bias problem";
40 homepage = "https://github.com/jvm-profiling-tools/async-profiler";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ mschuwalow ];
43 platforms = platforms.all;
44 mainProgram = "async-profiler";