2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2018-03-23 02:44:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jhiccup";
|
2019-01-03 16:46:23 +00:00
|
|
|
version = "2.0.10";
|
2018-03-23 02:44:24 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://www.azul.com/files/jHiccup-${version}-dist.zip";
|
2019-01-03 16:46:23 +00:00
|
|
|
sha256 = "1hsvi8wjh615fnjf75h7b5afp04chqcgvini30vfcn3m9a5icbgy";
|
2018-03-23 02:44:24 +00:00
|
|
|
};
|
|
|
|
|
2019-06-19 15:36:06 +00:00
|
|
|
dontConfigure = true;
|
2018-03-23 02:44:24 +00:00
|
|
|
buildPhase = ":";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/java
|
|
|
|
cp *.jar $out/share/java
|
|
|
|
|
|
|
|
# Fix version number (out of date at time of import), and path to
|
|
|
|
# jHiccup.jar
|
|
|
|
for x in ./jHiccup ./jHiccupLogProcessor; do
|
|
|
|
substituteInPlace $x \
|
|
|
|
--replace 'JHICCUP_Version=2.0.5' 'JHICCUP_Version=${version}' \
|
|
|
|
--replace '$INSTALLED_PATH' $out/share/java
|
|
|
|
done
|
|
|
|
|
|
|
|
mv jHiccup jHiccupLogProcessor $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Measure JVM application stalls and GC pauses";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.azul.com/jhiccup/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.cc0;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
2018-03-23 02:44:24 +00:00
|
|
|
};
|
|
|
|
}
|