nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ap / apache-directory-server / package.nix
blobd53e816461eea309e05bb4deec5b77b6f97bd211
2   lib,
3   stdenv,
4   fetchzip,
5   jdk11,
6   makeWrapper,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "apache-directory-server";
11   version = "2.0.0.AM26";
13   src = fetchzip {
14     url = "mirror://apache/directory/apacheds/dist/${version}/apacheds-${version}.zip";
15     sha256 = "sha256-36kDvfSy5rt/3+nivEFTepnIKf6sX0NTgPRm28M+1v4=";
16   };
18   nativeBuildInputs = [ makeWrapper ];
20   installPhase = ''
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"
26   '';
28   meta = with lib; {
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 ];
35   };