mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
2dd9829569
PR #80897
35 lines
865 B
Nix
35 lines
865 B
Nix
{ 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 ];
|
|
};
|
|
|
|
}
|