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

24 lines
585 B
Nix

{ stdenv, fetchFromGitHub }:
let
version = "25.0.4.1724354480";
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-BuQdJKl8Hglku7JnvXbWjP68m2wRstRyFx3IDyDPjNs=";
# hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
doBuild = false;
doCheck = false;
installPhase = ''
install -D libs/ext/phasetwo-admin-ui-${jarVersion}.jar $out/phasetwo-admin-ui-${jarVersion}.jar
'';
}