nixos-config/modules/keycloak/keycloak-admin-ui.nix

28 lines
646 B
Nix

{
buildMavenPackage,
fetchFromGitHub,
keycloak,
}:
let
inherit (keycloak) version;
in
buildMavenPackage {
inherit version;
pname = "keycloak-admin-ui";
src = fetchFromGitHub {
owner = "keycloak";
repo = "keycloak";
rev = version;
hash = "sha256-7YJjOChUC5HScNdU5XXp3gDparRCKtj1s2FQwyp6RPI=";
};
sourceRoot = "source/integration/admin-client";
mvnHash = "sha256-7TRNmQMo/KtM/XWF+KF7ALgr5J/7H6ejTtzsD2oIKZ0=";
# mvnHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
installPhase = ''
install -D target/keycloak-admin-client-${version}.jar $out/keycloak-admin-client-${version}.jar
'';
}