diff options
author | ngerstle <ngerstle@gmail.com> | 2020-02-25 08:00:40 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-02-26 23:33:04 +0100 |
commit | 2dd982956979fbc37950e9596282e073651edb23 (patch) | |
tree | 8b47cc4c71b5533822664b5c2ff503ecc2a996d5 /pkgs/servers/keycloak | |
parent | 7a86086b293670b81288fa9d352e8699d00f389d (diff) |
keycloak: init at 9.0.0
PR #80897
Diffstat (limited to 'pkgs/servers/keycloak')
-rw-r--r-- | pkgs/servers/keycloak/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/keycloak/default.nix b/pkgs/servers/keycloak/default.nix new file mode 100644 index 000000000000..5fe684cfe31f --- /dev/null +++ b/pkgs/servers/keycloak/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchzip, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "keycloak"; + version = "9.0.0"; + + src = fetchzip { + url = "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.zip"; + sha256 = "1w2d76v1rjghvdks1w32qi08gh88cd37vbf6vx0kq9a2gnhn7hip"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir $out + cp -r * $out + + rm -rf $out/bin/*.{ps1,bat} + rm -rf $out/bin/add-user-keycloak.sh + rm -rf $out/bin/jconsole.sh + + chmod +x $out/bin/standalone.sh + wrapProgram $out/bin/standalone.sh \ + --prefix PATH ":" ${jre}/bin ; + ''; + + meta = with stdenv.lib; { + homepage = "https://www.keycloak.org/"; + description = "Identity and access management for modern applications and services"; + license = licenses.asl20; + maintainers = [ maintainers.ngerstle ]; + }; + +} |