From 4de835127fd7dff4aa1a2eb6ce7fa8960245a342 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 14 Dec 2023 01:53:29 +0100 Subject: [PATCH] fix(keycloak): NullPointerException Use nightly to fix Cannot invoke "org.keycloak.models.RealmModel.getClientScopesStream()" because "realm" is null Until 23.0.2 is out https://github.com/keycloak/keycloak/pull/25313 https://github.com/keycloak/keycloak/issues/25176 https://github.com/keycloak/keycloak/issues/25183 --- overlays/default.nix | 1 + overlays/keycloak.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 overlays/keycloak.nix diff --git a/overlays/default.nix b/overlays/default.nix index 37a7340..d285cb1 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -17,6 +17,7 @@ element-themes = prev.callPackage ./pkgs/element-themes { inherit (inputs) element-themes; }; forgejo = release-2311.forgejo; }) + (import ./keycloak.nix) ]; }); }; diff --git a/overlays/keycloak.nix b/overlays/keycloak.nix new file mode 100644 index 0000000..f45772e --- /dev/null +++ b/overlays/keycloak.nix @@ -0,0 +1,9 @@ +final: prev: { + keycloak = prev.keycloak.overrideAttrs (oldAttrs: rec { + version = "999.0.0-SNAPSHOT"; + src = prev.fetchzip { + url = "https://github.com/keycloak/keycloak/releases/download/nightly/keycloak-${version}.zip"; + hash = "sha256-2rOhBmPXQy6HK3CtG/7E2EUK5zEWrJtSgBg6AMw2q3E="; + }; + }); +} -- 2.44.2