14 stdenv.mkDerivation rec {
15 pname = "openvpn-auth-ldap";
18 src = fetchFromGitHub {
20 repo = "openvpn-auth-ldap";
21 rev = "auth-ldap-${version}";
22 sha256 = "1j30sygj8nm8wjqxzpb7pfzr3dxqxggswzxd7z5yk7y04c0yp1hb";
26 ./auth-ldap-fix-conftest.patch
28 name = "fix-cve-2024-28820";
29 url = "https://patch-diff.githubusercontent.com/raw/threerings/openvpn-auth-ldap/pull/92.patch";
30 hash = "sha256-SXuo1D/WywKO5hCsmoeDdTsR7EelxFxJAKmlAQJ6vuE=";
49 "--with-objc-runtime=GNU"
50 "--with-openvpn=${openvpn}/include"
51 "--libdir=$(out)/lib/openvpn"
57 mkdir -p $out/lib/openvpn $out/share/doc/openvpn/examples
58 cp README.md $out/share/doc/openvpn/
59 cp auth-ldap.conf $out/share/doc/openvpn/examples/
63 description = "LDAP authentication plugin for OpenVPN";
64 homepage = "https://github.com/threerings/openvpn-auth-ldap";
69 maintainers = [ maintainers.benley ];
70 platforms = platforms.unix;