keycloak: use base theme again

https://github.com/p2-inc/keycloak-account-v1
This commit is contained in:
teutat3s 2024-02-08 20:03:04 +01:00
parent 1202a23c20
commit 635a245592
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,4 @@
parent=keycloak.v2
parent=keycloak-v1
import=common/pub.solar
styles=

View file

@ -1,10 +1,22 @@
final: prev:
let
pkgs = final;
version = "0.1";
keycloak-account-v1 = prev.fetchMavenArtifact {
artifactId = "keycloak-account-v1";
groupId = "io.phasetwo.keycloak";
inherit version;
hash = "sha256-t4kuc5ZieqsC06/alFN0W1ktORuk36TIgKXfrmBtesA=";
};
in
{
# this key should be the same as the simpleFlake name attribute.
keycloak-theme-pub-solar = {
keycloak-theme-pub-solar = import ./pkgs/keycloak-theme-pub-solar.nix { inherit pkgs; };
keycloak = prev.keycloak.overrideAttrs (finalAttrs: previousAttrs: {
installPhase = previousAttrs.installPhase + ''
ln -s ${keycloak-account-v1}/share/java/keycloak-account-v1-${version}.jar $out/providers/keycloak-account-v1-${version}.jar
'';
});
};
}