keycloak: Add Phase Two admin ui

This commit is contained in:
Erwin Boskma 2023-11-08 09:30:22 +01:00
parent 902e854d17
commit 97fe4cfc07
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 27 additions and 0 deletions

View file

@ -55,6 +55,9 @@ in
inherit (pkgs.maven) buildMavenPackage;
keycloak = config.services.keycloak.package;
})
(pkgs.callPackage ./phasetwo-admin-ui.nix {
inherit (pkgs) stdenv fetchFromGitHub;
})
];
};

View file

@ -0,0 +1,24 @@
{ stdenv
, fetchFromGitHub
}:
let
version = "22.0.1";
in
stdenv.mkDerivation {
inherit version;
pname = "keycloak-p2-admin-ui";
src = fetchFromGitHub {
owner = "p2-inc";
repo = "phasetwo-containers";
rev = "fac90ab2af4b82b59b8fdf6009606ddebe68a2f6";
hash = "sha256-IZQXIZOjm9DDf56Q8ayRvycs65P/eRP82FwGC8n7ZcY=";
};
doBuild = false;
doCheck = false;
installPhase = ''
install -D libs/ext/phasetwo-admin-ui-${version}.jar $out/phasetwo-admin-ui-${version}.jar
'';
}