yourkit-java: init at 2023.9-b103

This commit is contained in:
Guanpeng Xu
2023-12-30 15:17:38 -08:00
parent b920969079
commit dd7a04b36a
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{ fetchzip
, lib
, stdenv
, jdk17
}:
let jre = jdk17;
vPath = v: lib.elemAt (lib.splitString "-" v) 0;
arch = if stdenv.targetPlatform.system == "x86_64-linux"
then "x64"
else if stdenv.targetPlatform.system == "aarch64-linux"
then "arm64"
else throw "Unsupported system";
in
stdenv.mkDerivation rec {
pname = "YourKit-JavaProfiler";
version = "2023.9-b103";
src = fetchzip {
url = "https://download.yourkit.com/yjp/${vPath version}/${pname}-${version}-${arch}.zip";
hash = "sha256-fJk39cQEU924FViCwTcISIyhiwJEviVeqxLiNQifRis=";
};
buildInputs = [ jre ];
installPhase = ''
runHook preInstall
mkdir -p $out
sed -i -e 's|JAVA_EXE="$YD/jre64/bin/java"|JAVA_EXE=${jdk17}/bin/java|' bin/profiler.sh
cp -pr bin lib license.html license-redist.txt probes samples $out
runHook postInstall
'';
meta = with lib; {
homepage = "https://www.yourkit.com";
description = "Award winning, fully featured low overhead profiler for Java EE and Java SE platforms.";
license = licenses.unfree;
maintainers = with maintainers; [ herberteuler ];
platforms = platforms.linux;
};
}
+2
View File
@@ -20451,6 +20451,8 @@ with pkgs;
yodl = callPackage ../development/tools/misc/yodl { };
yourkit-java = callPackage ../development/tools/yourkit-java { };
yq = python3.pkgs.toPythonApplication python3.pkgs.yq;
yq-go = callPackage ../development/tools/yq-go { };