mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 10:00:56 +00:00
a4f0ed59b1
PR #91732 Closes #87230
36 lines
904 B
Nix
36 lines
904 B
Nix
{ stdenv, fetchzip, makeWrapper, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keycloak";
|
|
version = "10.0.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://downloads.jboss.org/keycloak/${version}/keycloak-${version}.zip";
|
|
sha256 = "1fn8yd02m0bnvwkbrfxrdnxfab30s0wzm3zxpy63wf3vak7nacma";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|