9 stdenv.mkDerivation rec {
10 pname = "apache-directory-server";
11 version = "2.0.0.AM26";
14 url = "mirror://apache/directory/apacheds/dist/${version}/apacheds-${version}.zip";
15 sha256 = "sha256-36kDvfSy5rt/3+nivEFTepnIKf6sX0NTgPRm28M+1v4=";
18 nativeBuildInputs = [ makeWrapper ];
21 mkdir -p $out/bin $out/share/apacheds
22 install -D $src/lib/*.jar $out/share/apacheds
23 classpath=$(jars=($out/share/apacheds/*.jar); IFS=:; echo "''${jars[*]}")
24 makeWrapper ${jdk11}/bin/java $out/bin/apache-directory-server \
25 --add-flags "-classpath $classpath org.apache.directory.server.UberjarMain"
29 description = "Extensible and embeddable directory server";
30 mainProgram = "apache-directory-server";
31 homepage = "https://directory.apache.org/apacheds/";
32 license = licenses.asl20;
33 platforms = platforms.unix;
34 maintainers = [ maintainers.ners ];