Skip to content

Commit

Permalink
keycloak: init at 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngerstle authored and rycee committed Feb 26, 2020
1 parent 7a86086 commit 2dd9829
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions 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 ];
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -15375,6 +15375,8 @@ in

jetty = callPackage ../servers/http/jetty { };

keycloak = callPackage ../servers/keycloak { };

knot-dns = callPackage ../servers/dns/knot-dns { };
knot-resolver = callPackage ../servers/dns/knot-resolver { };

Expand Down

0 comments on commit 2dd9829

Please sign in to comment.