evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ap / apache-directory-server / package.nix
blob4b7fb4086fba6dc0c217737a38d7987ec102a56f
1 { lib, stdenv, fetchzip, jdk11, makeWrapper }:
3 stdenv.mkDerivation rec {
4   pname = "apache-directory-server";
5   version = "2.0.0.AM26";
7   src = fetchzip {
8     url = "mirror://apache/directory/apacheds/dist/${version}/apacheds-${version}.zip";
9     sha256 = "sha256-36kDvfSy5rt/3+nivEFTepnIKf6sX0NTgPRm28M+1v4=";
10   };
12   nativeBuildInputs = [ makeWrapper ];
14   installPhase = ''
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"
20   '';
22   meta = with lib; {
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 ];
29   };