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

24 lines
585 B
Nix

{ stdenv, fetchFromGitHub }:
let
version = "25.0.2.1721752809";
jarVersion = "25.0.2";
in
stdenv.mkDerivation {
inherit version;
pname = "keycloak-p2-admin-ui";
src = fetchFromGitHub {
owner = "p2-inc";
repo = "phasetwo-containers";
rev = "v${version}";
hash = "sha256-U2gO5i3Uwy8ggHmyTkdrPnVzJHhLCB5voZqCh0JIJps=";
# hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
doBuild = false;
doCheck = false;
installPhase = ''
install -D libs/ext/phasetwo-admin-ui-${jarVersion}.jar $out/phasetwo-admin-ui-${jarVersion}.jar
'';
}