@@ -13,11 +13,11 @@
1313
1414stdenv.mkDerivation rec {
1515 pname = "keycloak";
16− version = "17.0.1";
16+ version = "18.0.0";
1717
1818 src = fetchzip {
1919 url = "https://github.com/keycloak/keycloak/releases/download/${version}/keycloak-${version}.zip";
20− sha256 = "sha256-z1LfTUoK+v4oQxdyIQruFhl5O333zirSrkPoTFgVfmI=";
20+ sha256 = "0fxf9m50hpjplj077z2zjp0qibixz5y4lbc8159cnxbd4gzpkaaf";
2121 };
2222
2323 nativeBuildInputs = [ makeWrapper jre ];
@@ -57,8 +57,8 @@ stdenv.mkDerivation rec {
5757 '';
5858
5959 postFixup = ''
60− substituteInPlace $out/bin/kc.sh --replace '-Dkc.home.dir=$DIRNAME/../' '-Dkc.home.dir=$KC_HOME_DIR'
61− substituteInPlace $out/bin/kc.sh --replace '-Djboss.server.config.dir=$DIRNAME/../conf' '-Djboss.server.config.dir=$KC_CONF_DIR'
60+ substituteInPlace $out/bin/kc.sh --replace ${lib.escapeShellArg "-Dkc.home.dir='$DIRNAME'/../"} '-Dkc.home.dir=$KC_HOME_DIR'
61+ substituteInPlace $out/bin/kc.sh --replace ${lib.escapeShellArg "-Djboss.server.config.dir='$DIRNAME'/../conf"} '-Djboss.server.config.dir=$KC_CONF_DIR'
6262
6363 for script in $(find $out/bin -type f -executable); do
6464 wrapProgram "$script" --set JAVA_HOME ${jre} --prefix PATH : ${jre}/bin