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

26 lines
572 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-2tTdm8e+OUgO+g/ob1mw+4wFbr6wAPlnbCr8edKGuoE=";
};
sourceRoot = "source/integration/admin-client";
mvnHash = "sha256-dM9KBAjRPtea3kgmkEQiS953U/jAAXOfgpJOE/KuCOE=";
installPhase = ''
install -D target/keycloak-admin-client-${version}.jar $out/keycloak-admin-client-${version}.jar
'';
}