2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
maven,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
maven.buildMavenPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "keycloak-metrics-spi";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "6.0.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aerogear";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-MMonBRau8FpfCqija6NEdvp4zJfEub2Kwk4MA7FYWHI=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
mvnHash = "sha256-u+UAbKDqtlBEwrzh6LRgs8sZfMZ1u2TAluzOxsBrb/k=";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-04 22:07:22 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -Dm444 -t "$out" target/keycloak-metrics-spi-*.jar
|
|
|
|
runHook postInstall
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/aerogear/keycloak-metrics-spi";
|
|
|
|
description = "Keycloak Service Provider that adds a metrics endpoint";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ benley ];
|
|
|
|
platforms = lib.platforms.linux;
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|