2018-03-23 02:44:24 +00:00
|
|
|
{ stdenv, fetchzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jhiccup-${version}";
|
2018-05-17 14:43:34 +01:00
|
|
|
version = "2.0.9";
|
2018-03-23 02:44:24 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://www.azul.com/files/jHiccup-${version}-dist.zip";
|
2018-05-17 14:43:34 +01:00
|
|
|
sha256 = "1y089kzj191j3vclkma4vi1w66pw4jqrnm5z0qw264wqcn0hnq11";
|
2018-03-23 02:44:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ":";
|
|
|
|
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";
|
|
|
|
homepage = https://www.azul.com/jhiccup/;
|
|
|
|
license = stdenv.lib.licenses.cc0;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|