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

24 lines
585 B
Nix

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