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

27 lines
572 B
Nix
Raw Normal View History

2023-11-03 16:29:31 +01:00
{ 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-Lk2CWzIV7UcDHy3hth9ccw3OUAsphM3llahHtehAcV0=";
};
sourceRoot = "source/integration/admin-client";
mvnHash = "sha256-HkVib0WCbl+/EuwUf8JiYKewIz1AntTvGySInsOkODE=";
installPhase = ''
install -D target/keycloak-admin-client-${version}.jar $out/keycloak-admin-client-${version}.jar
'';
}