2020-02-25 08:00:40 +01:00
|
|
|
{ stdenv, fetchzip, makeWrapper, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keycloak";
|
2020-06-28 19:13:52 +02:00
|
|
|
version = "10.0.2";
|
2020-02-25 08:00:40 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.zip";
|
2020-06-28 19:13:52 +02:00
|
|
|
sha256 = "1fn8yd02m0bnvwkbrfxrdnxfab30s0wzm3zxpy63wf3vak7nacma";
|
2020-02-25 08:00:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2020-03-27 10:20:00 +01:00
|
|
|
platforms = jre.meta.platforms;
|
2020-02-25 08:00:40 +01:00
|
|
|
maintainers = [ maintainers.ngerstle ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|