nixpkgs/pkgs/development/tools/java/jhiccup/default.nix
R. RyanTM 82fbc339a5 jhiccup: 2.0.8 -> 2.0.9
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.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/di6qgm16dycmq6xg4jhwbmin207kykkr-jhiccup-2.0.9/bin/jHiccup had a zero exit code or showed the expected version
- /nix/store/di6qgm16dycmq6xg4jhwbmin207kykkr-jhiccup-2.0.9/bin/jHiccupLogProcessor passed the binary check.
- 1 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 2.0.9 with grep in /nix/store/di6qgm16dycmq6xg4jhwbmin207kykkr-jhiccup-2.0.9
- directory tree listing: https://gist.github.com/83abe7e20b3fd3db4dd38e3223479de0
- du listing: https://gist.github.com/196b47d4bb8d9ecf736bb2a7be08ce2c
2018-05-18 08:59:31 -05:00

37 lines
1.0 KiB
Nix

{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "jhiccup-${version}";
version = "2.0.9";
src = fetchzip {
url = "https://www.azul.com/files/jHiccup-${version}-dist.zip";
sha256 = "1y089kzj191j3vclkma4vi1w66pw4jqrnm5z0qw264wqcn0hnq11";
};
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 ];
};
}