8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
35 lines
903 B
Nix
35 lines
903 B
Nix
{ stdenv, fetchzip, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keycloak";
|
|
version = "9.0.3";
|
|
|
|
src = fetchzip {
|
|
url = "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.zip";
|
|
sha256 = "0nlfa6wwgj04xgg4ps5gpjp4iq2lmas97y5qz61lhns1p42xr4ls";
|
|
};
|
|
|
|
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;
|
|
platforms = jre.meta.platforms;
|
|
maintainers = [ maintainers.ngerstle ];
|
|
};
|
|
|
|
}
|