1 { lib, stdenv, fetchzip, jdk11, makeWrapper }:
3 stdenv.mkDerivation rec {
4 pname = "apache-directory-server";
5 version = "2.0.0.AM26";
8 url = "mirror://apache/directory/apacheds/dist/${version}/apacheds-${version}.zip";
9 sha256 = "sha256-36kDvfSy5rt/3+nivEFTepnIKf6sX0NTgPRm28M+1v4=";
12 nativeBuildInputs = [ makeWrapper ];
15 mkdir -p $out/bin $out/share/apacheds
16 install -D $src/lib/*.jar $out/share/apacheds
17 classpath=$(jars=($out/share/apacheds/*.jar); IFS=:; echo "''${jars[*]}")
18 makeWrapper ${jdk11}/bin/java $out/bin/apache-directory-server \
19 --add-flags "-classpath $classpath org.apache.directory.server.UberjarMain"
23 description = "Extensible and embeddable directory server";
24 mainProgram = "apache-directory-server";
25 homepage = "https://directory.apache.org/apacheds/";
26 license = licenses.asl20;
27 platforms = platforms.unix;
28 maintainers = [ maintainers.ners ];