diff options
author | talyz <kim.lindberger@gmail.com> | 2022-08-31 13:18:56 +0200 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2022-08-31 13:18:56 +0200 |
commit | 2affab6cf52750cc16cafbe16fbaffbb663be482 (patch) | |
tree | e2cb1af1ef0e60052828b7c159ee8d3202925810 /pkgs/servers/keycloak/default.nix | |
parent | bacac7cf54bdfdb41091a506dd1b158da08a2d78 (diff) |
keycloak: 18.0.0 -> 19.0.1
Diffstat (limited to 'pkgs/servers/keycloak/default.nix')
-rw-r--r-- | pkgs/servers/keycloak/default.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/servers/keycloak/default.nix b/pkgs/servers/keycloak/default.nix index ded809c163e59..b518f24c5340a 100644 --- a/pkgs/servers/keycloak/default.nix +++ b/pkgs/servers/keycloak/default.nix @@ -13,11 +13,11 @@ stdenv.mkDerivation rec { pname = "keycloak"; - version = "18.0.0"; + version = "19.0.1"; src = fetchzip { url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip"; - sha256 = "0fxf9m50hpjplj077z2zjp0qibixz5y4lbc8159cnxbd4gzpkaaf"; + sha256 = "sha256-3hqnFH0zWvgOgpQHV4eMqTGzUWEoRwxvOcOUL2s8YQk="; }; nativeBuildInputs = [ makeWrapper jre ]; @@ -28,17 +28,14 @@ stdenv.mkDerivation rec { install -m 0600 ${confFile} conf/keycloak.conf '' + '' install_plugin() { - if [ -d "$1" ]; then - find "$1" -type f \( -iname \*.ear -o -iname \*.jar \) -exec install -m 0500 "{}" "providers/" \; - else - install -m 0500 "$1" "providers/" - fi + if [ -d "$1" ]; then + find "$1" -type f \( -iname \*.ear -o -iname \*.jar \) -exec install -m 0500 "{}" "providers/" \; + else + install -m 0500 "$1" "providers/" + fi } ${lib.concatMapStringsSep "\n" (pl: "install_plugin ${lib.escapeShellArg pl}") plugins} '' + '' - export KC_HOME_DIR=$out - export KC_CONF_DIR=$out/conf - patchShebangs bin/kc.sh bin/kc.sh build |