mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 22:03:13 +00:00
ca80c4209a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/jhiccup/versions
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ stdenv, fetchzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "jhiccup-${version}";
|
|
version = "2.0.10";
|
|
|
|
src = fetchzip {
|
|
url = "https://www.azul.com/files/jHiccup-${version}-dist.zip";
|
|
sha256 = "1hsvi8wjh615fnjf75h7b5afp04chqcgvini30vfcn3m9a5icbgy";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|