2023-08-04 22:07:22 +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";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.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}";
|
|
|
|
hash = "sha256-pacmx5w1VVWz3HmHO6sc2friNUpzo4zyJI1/TQgCXlc=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
mvnHash = "sha256-rwAc2KtKo4vJ0JWwPquMyt+FHVNTmMpzBPbo8lWDN/A=";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/aerogear/keycloak-metrics-spi";
|
|
|
|
description = "Keycloak Service Provider that adds a metrics endpoint";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
};
|
|
|
|
}
|