packages/keycloak: init at 24.0.4

This commit is contained in:
Max Headroom 2024-05-17 14:06:12 +02:00
parent a7cc61d97e
commit 40cd0f90a6
2 changed files with 9 additions and 4 deletions

View file

@ -18,11 +18,11 @@ let
''; '';
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "keycloak"; pname = "keycloak";
version = "24.0.3"; version = "24.0.4";
src = fetchzip { src = fetchzip {
url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip"; url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip";
hash = "sha256-VlCAUAa3e8ho8s1pA935B+bz4mvziDtayu0GB9yOTI4="; hash = "sha256-tqY3rYFRsRpbvms8DVtCp8nXl0hlX1CzuOVFCE+23o4=";
}; };
nativeBuildInputs = [ makeWrapper jre ]; nativeBuildInputs = [ makeWrapper jre ];

View file

@ -1,4 +1,4 @@
{ maven, lib, fetchFromGitHub }: { maven, stdenv, lib, fetchFromGitHub }:
maven.buildMavenPackage rec { maven.buildMavenPackage rec {
pname = "keycloak-metrics-spi"; pname = "keycloak-metrics-spi";
@ -11,7 +11,11 @@ maven.buildMavenPackage rec {
hash = "sha256-iagXbsKsU4vNP9eg05bwXEo67iij3N2FF0BW50MjRGE="; hash = "sha256-iagXbsKsU4vNP9eg05bwXEo67iij3N2FF0BW50MjRGE=";
}; };
mvnHash = "sha256-+ySBrQ9yQ5ZxuVUh/mnHNEmugru3n8x5VR/RYEDCLAo="; mvnHash = {
aarch64-linux = "sha256-zO79pRrY8TqrSK4bB8l4pl6834aFX2pidyk1j9Itz1E=`";
x86_64-linux = "sha256-+ySBrQ9yQ5ZxuVUh/mnHNEmugru3n8x5VR/RYEDCLAo=";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system ${stdenv.hostPlatform.system} for ${pname}");
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -24,5 +28,6 @@ maven.buildMavenPackage rec {
description = "Keycloak Service Provider that adds a metrics endpoint"; description = "Keycloak Service Provider that adds a metrics endpoint";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ benley ]; maintainers = with maintainers; [ benley ];
platforms = [ "aarch64-linux" "x86_64-linux" ];
}; };
} }