nixpkgs/pkgs/by-name/pr/prometheus-jmx-javaagent/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

37 lines
904 B
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (
finalAttrs:
let
jarName = "jmx_prometheus_javaagent-${finalAttrs.version}.jar";
in
{
pname = "jmx-prometheus-javaagent";
version = "1.0.1";
src = fetchurl {
url = "mirror://maven/io/prometheus/jmx/jmx_prometheus_javaagent/${finalAttrs.version}/${jarName}";
hash = "sha256-fWH3N/1mFhDMwUrqeXZPqh6pSjQMvI8AKbPS7eo9gME=";
};
dontUnpack = true;
installPhase = ''
env
mkdir -p $out/lib
cp $src $out/lib/${jarName}
'';
meta = {
homepage = "https://github.com/prometheus/jmx_exporter";
description = "A process for exposing JMX Beans via HTTP for Prometheus consumption";
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.srhb ];
platforms = lib.platforms.unix;
};
}
)